On Fri, 2011-08-12 at 11:38 -0700, Eric Hanchrow wrote:
> I'm looking at a review from a co-worker, and I'd really like to have
> her code on my development machine, so that I can run the unit tests
> and mess around generally.
> I figured that I'd be able to download the diff from the review
> (http://our-reviewboard.server/r/123/diff/raw/) and apply that to my
> local git repository, but it doesn't apply:
> $ git apply ~/Downloads/bug\ \(1\).patch
> error: patch failed: some/file:7
> error: some/file: patch does not apply
> error: other/file: No such file or directory
> On reflection, this isn't surprising: she probably based her work on
> some commit other than the one that I happen to have checked out.
> Perhaps if I ask her for that commit ID, I'll be able to apply the
> diff. But somehow this seems wrong to me: it seems as if reviewboard
> should somehow provide that commit ID automatically. Am I
> misunderstanding something? Is there no way that I can get her work
> onto my machine, without having to get extra information from her?
This has come up in the past, and the real issue here is that the patch
that's uploaded to Review Board and the patch you get when you click
"Download patch" are NOT one and the same.
ReviewBoard needs to be modified so that if a patch generated by 'git
format-patch' is uploaded, the exact contents should be given back. Then
it would be possible to do 'git am -3 <patch>' and have git resolve the
merge (or prompt you to run 'git mergetool' if it was non-trivial).
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