Reviewing patches is currently quite tiresome because the reviewer has to write
stuff like "In method X of class Y, you write Z, which I think should be W." It
would be much nicer to have a visual diff of the patch where the Z in method X
of class Y could be annotated directly.
This can be nicely integrated into the issue tracker: once you've fixed an
issue, run a script that uploads an appropriate patch (or sufficient metadata to
fetch the patch from your repo) to the issue tracker. The issue tracker then
gets a "Review" button that shows the diff and can be annotated.
To see something like this in action, Python has recently started doing this,
using the "rietveld" code review tool. Since they also use Roundup (and will
start using Mercurial in the hopefully near future), they have a quite similar
setup to ours, so it's worth having a look. If you go to
http://bugs.python.org/issue2001, you see that there is a patch attached which
has a "review" link. Follow it, then click on the "View" link for Lib/pydoc.py
and you'll see a side-by-side diff with the reviewer's comments in four places.
Thoughts, comments?
|