hgext/histedit.py
changeset 27451 f209c85183a7
parent 27414 6602a7b9deec
child 27527 dbfaf361c062
--- a/hgext/histedit.py	Sun Dec 20 18:38:21 2015 +0900
+++ b/hgext/histedit.py	Fri Dec 18 06:19:22 2015 +0000
@@ -1082,15 +1082,21 @@
         if action.verb == 'fold' and nextact and nextact.verb == 'fold':
             state.actions[idx].__class__ = _multifold
 
+    total = len(state.actions)
+    pos = 0
     while state.actions:
         state.write()
         actobj = state.actions.pop(0)
+        pos += 1
+        ui.progress(_("editing"), pos, actobj.torule(),
+                    _('changes'), total)
         ui.debug('histedit: processing %s %s\n' % (actobj.verb,\
                                                    actobj.torule()))
         parentctx, replacement_ = actobj.run()
         state.parentctxnode = parentctx.node()
         state.replacements.extend(replacement_)
     state.write()
+    ui.progress(_("editing"), None)
 
     hg.update(repo, state.parentctxnode, quietempty=True)