Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3915 by aklitz...@gmail.com: FileNotFoundError problem with
Mercurial
https://code.google.com/p/reviewboard/issues/detail?id=3915
What version are you running?
2.0.16 - 2.0.18: broken
2.0.15: works
What steps will reproduce the problem?
1. Create a patch from mercurial (hg diff)
2. Create a review request with that patch
3. Show the diff
Sometimes I have the problem that I cannot upload the patch with the "same
problem".
What is the expected output? What do you see instead?
Expected: Show the diff like in 2.0.15.
Actual: Shows an error:
The file '.hgtags' (rf9e2887948e8a1632f07ab179945027884e1f6f4^1) could not
be found in the repository
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/views.py",
line 265, in get
response = renderer.render_to_response(request)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/renderers.py",
line 56, in render_to_response
return HttpResponse(self.render_to_string(request))
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/renderers.py",
line 74, in render_to_string
large_data=True)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.21-py2.7.egg/djblets/cache/backend.py",
line 111, in cache_memoize
data = lookup_callable()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/renderers.py",
line 73, in <lambda>
lambda: self.render_to_string_uncached(request),
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/renderers.py",
line 87, in render_to_string_uncached
request=request)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/diffutils.py",
line 422, in populate_diff_chunks
chunks = generator.get_chunks()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/chunk_generator.py",
line 156, in get_chunks
large_data=True)
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.21-py2.7.egg/djblets/cache/backend.py",
line 111, in cache_memoize
data = lookup_callable()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/chunk_generator.py",
line 155, in <lambda>
lambda: list(self._get_chunks_uncached()),
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/chunk_generator.py",
line 162, in _get_chunks_uncached
old = get_original_file(self.filediff, self.request, encoding_list)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/diffviewer/diffutils.py",
line 198, in get_original_file
request=request)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/scmtools/models.py",
line 343, in get_file
large_data=True)[0]
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.8.21-py2.7.egg/djblets/cache/backend.py",
line 111, in cache_memoize
data = lookup_callable()
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/scmtools/models.py",
line 342, in <lambda>
request)],
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/scmtools/models.py",
line 530, in _get_file_uncached
base_commit_id=base_commit_id)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/scmtools/hg.py",
line 48, in get_file
base_commit_id=base_commit_id)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.18-py2.7.egg/reviewboard/scmtools/hg.py",
line 234, in cat_file
raise FileNotFoundError(path, rev)
FileNotFoundError: The file '.hgtags'
(rf9e2887948e8a1632f07ab179945027884e1f6f4^1) could not be found in the
repository
What operating system are you using? What browser?
Linux, Firefox 39
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.