Differences between revisions 3 and 17 (spanning 14 versions)
Revision 3 as of 2008-06-04 16:29:18
Size: 1089
Editor: JamesWalker
Comment: set title
Revision 17 as of 2012-09-02 14:14:18
Size: 2834
Editor: 89
Comment: Updated fork features to highlight the fact that the Google Code version has now caught up with the bitbucket fork
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
''Author: Dennis Schön'' ''Authors: Dennis Schön, Tigran Mkrtchyan, Colin Caughie''
Line 7: Line 7:
Download site: http://blogma.de/posts/2008/apr/07/reviewboard-extension-mercurial/ Repository: http://code.google.com/p/mercurial-reviewboard/

Alternate version (by mdelagra): https://bitbucket.org/mdelagra/mercurial-reviewboard
Line 11: Line 13:
This extension adds a new command 'postreview' to post changesets for review to a [http://www.review-board.org/ Review Board] server. This extension adds a new command 'postreview' to post changesets for review to a [[http://www.review-board.org/|Review Board]] server.
Line 18: Line 20:
reviewboard = /path/to/reviewboard reviewboard = /path/to/reviewboard_dir
Line 26: Line 28:
# password = ... # password for login
Line 46: Line 49:
To update the review request ID 12 with the tip changeset:

{{{
$ hg postreview -e 12 tip
login to http://reviewboard.example.com
username: ...
password:
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
}}}

=== crontab ===
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:

{{{
[hooks]
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.

=== Alternate Version ===

According to the author, this fork was a functional superset of the original postreview tool (see above) and added a number of features which are now in the Google Code repository, including:
 * ability to automatically create a review for outgoing changes or entire branches
 * adding all commit messages to the review description
 * automatic repository selection
 * ability to open reviews in a browser window automatically.

This version can be used with TortoiseHg.
Line 47: Line 92:
CategoryExtension CategoryExtensionsByOthers

Review Board

This extension is not distributed with Mercurial.

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

Repository: http://code.google.com/p/mercurial-reviewboard/

Alternate version (by mdelagra): https://bitbucket.org/mdelagra/mercurial-reviewboard

Overview

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

Configuration

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

[extensions]
reviewboard = /path/to/reviewboard_dir

[reviewboard]
# REQUIRED ITEMS:
server          = http://reviewboard.example.com/

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

Usage

To post the tip changeset to the Review board server:

$ hg postreview tip
login to http://reviewboard.example.com
username: ...
password:
Repositories:
[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 -e 12 tip
login to http://reviewboard.example.com
username: ...
password:
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

crontab

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:

[hooks]
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.

Alternate Version

According to the author, this fork was a functional superset of the original postreview tool (see above) and added a number of features which are now in the Google Code repository, including:

  • ability to automatically create a review for outgoing changes or entire branches
  • adding all commit messages to the review description
  • automatic repository selection
  • ability to open reviews in a browser window automatically.

This version can be used with TortoiseHg.


CategoryExtensionsByOthers

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