# HG changeset patch # User Steve Losh # Date 1254697317 14400 # Node ID e92ab6fb652ea0c503444044def28bcf83cbf474 # Parent 1596046f752c81ca12ce7b66d213e4aba9653e44 Add more output for hg review. diff -r 1596046f752c -r e92ab6fb652e review/extension_ui.py --- a/review/extension_ui.py Sun Oct 04 18:57:18 2009 -0400 +++ b/review/extension_ui.py Sun Oct 04 19:01:57 2009 -0400 @@ -3,6 +3,7 @@ import messages from api import * from mercurial import util +from mercurial.node import short def review(ui, repo, *fnames, **opts): '''code review a changeset in the current repository @@ -38,9 +39,14 @@ author_count = len(set(comment.author for comment in rcset.comments)) - ui.write('comments: %d comments from %d authors\n' % ( + ui.write('changeset: %d:%s\n' % (cset.rev(), short(cset.node()))) + ui.write('author: %s\n' % cset.user()) + ui.write('summary: %s\n\n' % cset.description().split('\n')[0]) + + + ui.write('signoffs: %d signoffs\n' % len(rcset.signoffs)) + ui.write('comments: %d comments from %d authors\n\n' % ( len(rcset.comments), author_count)) - ui.write('signoffs: %d signoffs\n' % len(rcset.signoffs)) cmdtable = {