changeset 983:914255564352

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 13 Jun 2014 12:49:16 -0700
parents 1c7b73739a0d
children b286f77d680c
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)