equal
deleted
inserted
replaced
854 # but this trigger a bug in changegroup hook. |
854 # but this trigger a bug in changegroup hook. |
855 # This would reduce bundle overhead |
855 # This would reduce bundle overhead |
856 repair.strip(ui, repo, c) |
856 repair.strip(ui, repo, c) |
857 finally: |
857 finally: |
858 lockmod.release(lock) |
858 lockmod.release(lock) |
|
859 |
|
860 def summaryhook(ui, repo): |
|
861 if not os.path.exists(repo.join('histedit-state')): |
|
862 return |
|
863 (parentctxnode, rules, keep, topmost, replacements) = readstate(repo) |
|
864 if rules: |
|
865 # i18n: column positioning for "hg summary" |
|
866 ui.write(_('hist: %s (histedit --continue)\n') % |
|
867 (ui.label(_('%d remaining'), 'histedit.remaining') % |
|
868 len(rules))) |
|
869 |
|
870 def extsetup(ui): |
|
871 cmdutil.summaryhooks.add('histedit', summaryhook) |