evolve: compute "troubled" revs in stabilize only when necessary stable
authorPatrick Mezard <patrick@mezard.eu>
Sat, 25 Aug 2012 08:20:50 +0200
branchstable
changeset 510 f511d2aa742c
parent 509 c072e559746d
child 511 ddeb71df916d
evolve: compute "troubled" revs in stabilize only when necessary
hgext/evolve.py
--- a/hgext/evolve.py	Sat Aug 25 08:17:59 2012 +0200
+++ b/hgext/evolve.py	Sat Aug 25 08:20:50 2012 +0200
@@ -1316,9 +1316,9 @@
         graftcmd = commands.table['graft'][0]
         return graftcmd(ui, repo, old_obsolete=True, **{'continue': True})
 
-    troubled = list(repo.revs('troubled()'))
     tr = _picknexttroubled(ui, repo, anyopt)
     if tr is None:
+        troubled = list(repo.revs('troubled()'))
         if troubled:
             ui.write_err(_('nothing to evolve here\n'))
             ui.status(_('(%i troubled changesets, do you want --any ?)\n')