evolve: delete dead calculation of number of troubled revisions
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 25 Apr 2019 14:02:11 -0700
changeset 4611 c3fb96f9c8de
parent 4610 c54d4c2c2846
child 4612 c289f06028d0
evolve: delete dead calculation of number of troubled revisions The "count" variable is recalculated in the regular (no --continue) code path and it isn't used anywhere else (it used to be set to 1 in the --continue code path, but that now has its own progress counting).
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Fri Apr 19 10:23:53 2019 -0700
+++ b/hgext3rd/evolve/evolvecmd.py	Thu Apr 25 14:02:11 2019 -0700
@@ -1640,7 +1640,6 @@
         return solveobswdp(ui, repo, opts)
 
     ui.setconfig('ui', 'forcemerge', opts.get('tool', ''), 'evolve')
-    troubled = set(repo.revs('troubled()'))
 
     evolvestate = state.cmdstate(repo)
     # Continuation handling
@@ -1682,7 +1681,6 @@
 
         # Progress handling
         seen = 1
-        count = allopt and len(troubled) or 1
         showprogress = allopt or revopt
 
         def progresscb():