stabilize: proper --quiet behavior
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 13 Mar 2012 12:00:40 +0100
changeset 146 e80a6c8ad452
parent 145 928f217c1701
child 147 b0b23d9eede5
stabilize: proper --quiet behavior
hgext/evolve.py
--- a/hgext/evolve.py	Thu Mar 08 14:35:57 2012 +0100
+++ b/hgext/evolve.py	Tue Mar 13 12:00:40 2012 +0100
@@ -211,12 +211,14 @@
     displayer = cmdutil.show_changeset(ui, repo, {'template': shorttemplate})
     target = repo[target]
     repo.ui.status(_('move:'))
-    displayer.show(node)
+    if not ui.quiet:
+        displayer.show(node)
     repo.ui.status(_('atop:'))
-    displayer.show(target)
+    if not ui.quiet:
+        displayer.show(target)
     todo= 'hg rebase -Dr %s -d %s\n' % (node, target)
     if opts['dry_run']:
-        repo.ui.status(todo)
+        repo.ui.write(todo)
     else:
         repo.ui.note(todo)
         lock = repo.lock()