Differences between revisions 11 and 12
Revision 11 as of 2010-11-16 16:44:48
Size: 2235
Comment: Tell how to create a crontab for automation
Revision 12 as of 2011-02-28 07:39:08
Size: 2239
Editor: ColinCaughie
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
reviewboard = /path/to/reviewboard reviewboard = /path/to/reviewboard_dir

Review Board

This extension is not distributed with Mercurial.

Authors: Dennis Schön, Tigran Mkrtchyan, Colin Caughie

Download site: http://code.google.com/p/mercurial-reviewboard/


This extension adds a new command 'postreview' to post changesets for review to a Review Board server.


Configure your .hgrc to enable the extension by adding following lines:

reviewboard = /path/to/reviewboard_dir

server          = http://reviewboard.example.com/

# user            = ... # username for login
# password        = ... # password for login
# target_groups   = ... # default review groups
# target_people   = ... # default review people


To post the tip changeset to the Review board server:

$ hg postreview tip
login to http://reviewboard.example.com
username: ...
[1] Stuff
[2] miscrepo
repository id: 1
review request draft saved: http://reviewboard.example.com/r/366/

To update the review request ID 12 with the tip changeset:

$ hg postreview -r 12 tip
login to http://reviewboard.example.com
username: ...
review request draft saved: http://reviewboard.example.com/r/12/

To request a review for changeset 189 using the upstream repository to determine the base revision to use for a parent diff (see http://www.review-board.org/docs/manual/dev/users/tools/post-review/ for an explanation of parent diffs):

$ hg postreview -o 189


You can set a crontab to create automatically review ticket for new commit every 5 minutes. Set a crontab on the Review Board server. You must replace PATH_TO_THEANO_REPO:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd PATH_TO_THEANO_REPO; hg pull

In the .hg/hgrc file of the repository, add this while substituting REVIEW_BOARD_REPOSITORY_ID:

incoming = hg postreview -i REVIEW_BOARD_REPOSITORY_ID -p $HG_NODE

The -p option is to publish the new review ticket. Otherwise it will be saved as a draft ticket.


ReviewboardExtension (last edited 2013-08-31 15:56:12 by KevinBot)