hgreview adds a command to publish, refresh and fetch a patch from a rietveld instance.
This extension is not distributed with Mercurial.
Author: Nicolas Évrard
Web page: https://bitbucket.org/nicoe/hgreview/
This extensions allows you to publish your patch on a rietveld instance easily:
$ hg review -m "my foobuzz patch' Server used http://codereview.appspot.com Issue created. URL: http://codereview.appspot.com/6564064 Uploading base file for hgreview/__init__.py Uploading current file for hgreview/__init__.py
Afterwards you can easily add new patchset to the existing codereview:
$ hg review -m "my other patch"
If you which to fetch the last patchset of a specific review, you can do it that way:
$ hg review --fetch -i ISSUE_ID
The patch will be downloaded and applied with call to import.
Configure your .hgrc to enable the extension by adding following lines:
[extensions] hgreview =
You can specify your instance username and server with this configuration
[review] username = email@example.com server = http://codereview.host.example