evolve: minor reorganisation of code responsible for evolve output
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 13 Jun 2014 12:49:16 -0700
changeset 983 914255564352
parent 982 1c7b73739a0d
child 984 b286f77d680c
evolve: minor reorganisation of code responsible for evolve output This does not change any of the semantic as status is not printed when --quiet is provided. This juste make it more explicit that the output are related.
hgext/evolve.py
--- a/hgext/evolve.py	Thu Jun 12 16:10:01 2014 -0700
+++ b/hgext/evolve.py	Fri Jun 13 12:49:16 2014 -0700
@@ -1343,11 +1343,10 @@
     target = targets[0]
     displayer = cmdutil.show_changeset(ui, repo, {'template': shorttemplate})
     target = repo[target]
-    repo.ui.status(_('move:'))
     if not ui.quiet:
+        repo.ui.status(_('move:'))
         displayer.show(orig)
-    repo.ui.status(_('atop:'))
-    if not ui.quiet:
+        repo.ui.status(_('atop:'))
         displayer.show(target)
     if progresscb: progresscb()
     todo = 'hg rebase -r %s -d %s\n' % (orig, target)