Mercurial > public > mercurial-scm > hg-stable
diff hgext/histedit.py @ 27451:f209c85183a7
histedit: add progress support
author | timeless <timeless@mozdev.org> |
---|---|
date | Fri, 18 Dec 2015 06:19:22 +0000 |
parents | 6602a7b9deec |
children | dbfaf361c062 |
line wrap: on
line diff
--- 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)