Andrew Hao’s thoughts on design, Web development, and anything shiny.

post-review, git-svn and Review Board

Published on 02/06/10
by andrewhao

Here’s how to set up the excellent VMware-developed open-source Review Board and its post-review command line review creation utility to work with git and git-svn on your computer.

My assumption is that you’re working with a local Git repository that is remotely linked to an SVN repository via the git-svn bridge. Let’s assume that your master branch is synced with the SVN repository, and you’re working on bug_12345_branch.

  1. Make sure you have RBTools installed (sudo easy_install rbtools for me on Ubuntu Linux), and Review Board set up elsewhere.
  2. Add a link to your Review Board URL in .git/config:
[reviewboard]
 url = https://(url_for_review_board)/
  1. Make sure all your changes in bug_12345_branch have been locally committed.
  2. post-review -o, and…
  3. Voila! You should have a new review up on your Review Board instance.
  4. (After you get reviews, you can modify bug_12345_branch, pull the changes into master, and then git svn dcommit, blah, blah, blah.)

That's it. What Next?

Please leave your comment so we know what you think about this article. Trackback URL: post-review, git-svn and Review Board.