summary: quieter with -q
authorMatt Mackall <mpm@selenic.com>
Mon, 19 Oct 2009 00:22:49 -0500
changeset 9605 3194227a4158
parent 9604 fcc85abc762e
child 9606 69f8ac71ded1
summary: quieter with -q
mercurial/commands.py
--- a/mercurial/commands.py	Mon Oct 19 00:21:06 2009 -0500
+++ b/mercurial/commands.py	Mon Oct 19 00:22:49 2009 -0500
@@ -2918,7 +2918,10 @@
     elif pnode not in bheads:
         t += _(' (new branch head)')
 
-    ui.write(_('commit: %s\n') % t.strip())
+    if 'clean' in t:
+        ui.status(_('commit: %s\n') % t.strip())
+    else:
+        ui.write(_('commit: %s\n') % t.strip())
 
     # all ancestors of branch heads - all ancestors of parent = new csets
     new = [0] * len(repo)
@@ -2930,7 +2933,7 @@
     new = sum(new)
 
     if new == 0:
-        ui.write(_('update: (current)\n'))
+        ui.status(_('update: (current)\n'))
     elif pnode not in bheads:
         ui.write(_('update: %d new changesets (update)\n') % new)
     else: