Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 953 by hugues.lismonde: Diff viewer does not work on Mercurial  
ssh repositories
http://code.google.com/p/reviewboard/issues/detail?id=953

*NOTE: Do not post confidential information in this bug report.*

What's the URL of the page containing the problem?

http://[host]/r/9/diff/#index_header

What steps will reproduce the problem?
1. setup a Mercurial repository in review board with ssh access
2. post a review request (using post-review)
3. trying to view the diff in review-board

What is the expected output? What do you see instead?

Should display the patch but I get an exception:
The file 'helloworld.php' (r36e4e1329c74) could not be found in the  
repository: 'sshrepository'
object has no attribute 'changectx'

Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/views.py", line 145, in view_diff
     interdiffset, highlighting, True)[0]
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 619, in get_diff_files
     large_data=True)
    
File 
"/usr/lib/python2.4/site-packages/Djblets-0.5alpha3-py2.4.egg/djblets/util/misc.py",
line 143, in cache_memoize
     data = lookup_callable()
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 618, in <lambda>
     enable_syntax_highlighting),
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 341, in get_chunks
     old = get_original_file(filediff)
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 248, in  
get_original_file
     large_data=True)[0]
    
File 
"/usr/lib/python2.4/site-packages/Djblets-0.5alpha3-py2.4.egg/djblets/util/misc.py",
line 143, in cache_memoize
     data = lookup_callable()
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 247, in <lambda>
     data = cache_memoize(key, lambda: [fetch_file(file, revision)],
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/diffviewer/diffutils.py", line 227, in fetch_file
     data = tool.get_file(file, revision)
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/scmtools/hg.py", line 22, in get_file
     return self.client.cat_file(path, str(revision))
   File "/usr/lib/python2.4/site-packages/ReviewBoard-1.0alpha4-
py2.4.egg/reviewboard/scmtools/hg.py", line 130, in cat_file
     raise FileNotFoundError(path, rev, str(e))
FileNotFoundError: The file 'helloworld.php' (r36e4e1329c74) could not be  
found in the
repository: 'sshrepository' object has no attribute 'changectx'

What operating system are you using? What browser?
Centos 5.2 on server, OSX 10.5 Safari 4ß/Firefox 3.0.7

Please provide any additional information below.

Apache has a readonly access to our repositories with a public key  
authentication.
When under Apache account, clone works correctly without password needed,  
no exception.
The same repository can be accessed via hgwebdir but mirror path is not  
working (see #952)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to