e92ab6fb652e

Add more output for hg review.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Oct 2009 19:01:57 -0400
parents 1596046f752c
children e72a3408cc68
branches/tags (none)
files review/extension_ui.py

Changes

--- 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 = {