# HG changeset patch # User Steve Losh # Date 1278386214 14400 # Node ID 48eb55088a67a67ef7853d6754bba66bc0916a89 # Parent a6499117bd1a294c752db8abe739f35e262d5d42 cli: add help for --edit diff -r a6499117bd1a -r 48eb55088a67 review/cli.py --- a/review/cli.py Mon Jul 05 23:03:01 2010 -0400 +++ b/review/cli.py Mon Jul 05 23:16:54 2010 -0400 @@ -351,6 +351,7 @@ - hg help review-signoff - hg help review-check - hg help review-web + - hg help review-edit Once you've reviewed some changesets don't forget to push your comments and signoffs so other people can view them. @@ -416,6 +417,7 @@ (['review-signoff'], ('Adding code review signoffs for changesets'), (helps.SIGNOFF)), (['review-check'], ('Checking the review status of changesets'), (helps.CHECK)), (['review-web'], ('Using the web interface to review changesets'), (helps.WEB)), + (['review-edit'], ('Editing code review comments and signoffs'), (helps.EDIT)), ) colortable = { diff -r a6499117bd1a -r 48eb55088a67 review/helps.py --- a/review/helps.py Mon Jul 05 23:03:01 2010 -0400 +++ b/review/helps.py Mon Jul 05 23:16:54 2010 -0400 @@ -153,3 +153,22 @@ If ``--port`` is given the web interface will listen on the given port. """ + +EDIT = r""" +USAGE: hg review --edit IDENTIFIER [--yes | --no] [-m MESSAGE] [-l LINES] [--mdown] [FILE] + +Edit the comment or changeset with the given identifier. + +You can find the identifier of the item you would like to edit by running ``hg +review --verbose`` to display identifiers. + +Any other options given (such as ``--message``, ``--yes`` or filenames) will +replace the content of the item you edit. + +Examples:: + + hg review --edit aaabbb111333 -m "This is fine." + hg review --edit aaabbb111333 -m "These lines are bad." -l 2,3,4 + hg review --edit aaabbb111333 --no -m "I've changed my mind, this is bad." + +"""