>
> Are you aware if ReviewBoard API offers a way to get the source code of the
> original and the modified file? Because if there is such a thing, I believe
> should not be a big deal to invoke the diff editor to show that. In the
> past I developed an inline diff viewer of remote files using the editor, and
> it worked pretty well.
>
> Let me know if you think this can be possible to achieve. If sounds
> resonable, I can help.
What we currently do is:
- retrieve the diff file using
http://www.reviewboard.org/docs/manual/1.6/webapi/2.0/resources/file-diff/
- retrieve the 'old' file revision from the SCM repo using Eclipse
APIs and use it to display the diff
AFAIK Reviewboard does not store the file revisions, just the diff. It
might be possible to ask reviewboard to retrieve the file revision
itself but I did not find any reference to it in the web api docs at
http://www.reviewboard.org/docs/manual/1.6/webapi/ .
There are a couple of options here:
- raise an enhancement request with RB to ask for a 'pass-through'
method to retrieve the 'old' file revision from SCM
- always have the git repositories checked out in Eclipse
- if no repository can be found in Eclipse open the diff in the browser
Robert