On 2013-02-25 11:54, age...@themactionfaction.com wrote:
I am migrating from RB 1.6.3 on SQLite and local git repos to RB 1.7.5 on
PostgreSQL and remote git repos and cgit. I have successfully migrated the
data and reviewboard 1.7.5 is running, however, the diff viewer is broken.
It seems that RB is passing non-existent SHA hashes to cgit so cgit always
returns the latest version of the file. The resultant error is:
Diff currently unavailable. *Error:* The patch to 'tools/make_tarballs'
didn't apply cleanly. The temporary files have been left in
'/tmp/reviewboard.cCQhSt' for debugging purposes. `patch` returned:
patching file /tmp/reviewboard.cCQhSt/tmpC2DNFj Reversed (or previously
applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 7
out of 7 hunks ignored -- saving rejects to file
RB shows "Revision c4b297e0380c2c0bc1610659eb1b6bfdccfe196f" but this
revision does not exist in the git repository.
What I don't understand is what the "revision" under the file name in the
diff viewer came from since it does not exist in the repository. In the old
installation (still running), the revision is the same non-existent SHA
hash, but the diff viewer works. Does it make a difference that the patch
was partially committed? Where does that revision come from? Thanks for any
This isn't a commit ID, but a blob ID.
If you use 'git show <sha>', you should get a dump of the file contents.
It sounds like your 'raw file URL' for your repository is not set
correctly. Make sure it is set to a template from which cgit will accept
a *blob ID* (not a commit ID) to retrieve a specific version of a file.
Want to help the Review Board project? Donate today at
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.