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

New issue 3356 by "Diff currently unavailable" when reviewing change to file that is not pushed to remote repo yet

What version are you running?

1.7.20 of RB, RBTools 0.5.5, RBTools 0.6

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

What steps will reproduce the problem?
1. Create and check in a file with some text foo
2. git mv foo bar
3. commit
4. rbt post
5. edit bar
6. commit
7. rbt post --revision-range=HEAD^:HEAD

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

I expected to see the changes to bar, but instead I get:
Diff currently unavailable.
Error: The file 'bar' (r123abc)  could not be found in the repository.

What operating system are you using? What browser?

rbt was running on a Mac and I'm viewing with Chrome, but I hope these don't matter.

Please provide any additional information below.

The backtrace indicates that RB is trying to fetch a file from the remote repository (in this case, a github instance) but the file is not there. That's expected; the git mv commit has not been pushed yet. rbt post would need to get the base file from the local repository.

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/", line 251, in view_diff_fragment
    diff_file = get_requested_diff_file()
File "/usr/local/lib/python2.7/dist-packages/", line 171, in get_requested_diff_file
    populate_diff_chunks(files, highlighting, request=request)
File "/usr/local/lib/python2.7/dist-packages/", line 342, in populate_diff_chunks
    chunks = generator.get_chunks()
File "/usr/local/lib/python2.7/dist-packages/", line 137, in get_chunks
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.27-py2.7.egg/djblets/util/", line 157, in cache_memoize
    data = lookup_callable()
File "/usr/local/lib/python2.7/dist-packages/", line 136, in <lambda>
    lambda: list(self._get_chunks_uncached()),
File "/usr/local/lib/python2.7/dist-packages/", line 141, in _get_chunks_uncached
    old = get_original_file(self.filediff, self.request)
File "/usr/local/lib/python2.7/dist-packages/", line 126, in get_original_file
File "/usr/local/lib/python2.7/dist-packages/", line 171, in get_file
File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.27-py2.7.egg/djblets/util/", line 157, in cache_memoize
    data = lookup_callable()
File "/usr/local/lib/python2.7/dist-packages/", line 170, in <lambda>
File "/usr/local/lib/python2.7/dist-packages/", line 263, in _get_file_uncached
File "/usr/local/lib/python2.7/dist-packages/", line 301, in get_file
    raise FileNotFoundError(path, revision)

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to