evolve: add progress for _obsrelsethashtree
authortimeless@mozdev.org
Wed, 09 Sep 2015 19:43:24 -0400
changeset 1495 625b75a01196
parent 1494 aca2495425a6
child 1496 62aa11956a40
evolve: add progress for _obsrelsethashtree
hgext/evolve.py
--- a/hgext/evolve.py	Wed Sep 09 19:43:14 2015 -0400
+++ b/hgext/evolve.py	Wed Sep 09 19:43:24 2015 -0400
@@ -3381,6 +3381,7 @@
     cache = []
     unfi = repo.unfiltered()
     markercache = {}
+    repo.ui.progress("preparing locally", 0, total=len(unfi))
     for i in unfi:
         ctx = unfi[i]
         entry = 0
@@ -3410,6 +3411,8 @@
             cache.append((ctx.node(), sha.digest()))
         else:
             cache.append((ctx.node(), nullid))
+        repo.ui.progress("preparing locally", i, total=len(unfi))
+    repo.ui.progress("preparing locally", None)
     return cache
 
 @command('debugobsrelsethashtree',