hgext/histedit.py
changeset 19215 f184fe1e2ac5
parent 19048 1163ff06ce89
child 19306 59cdd3a7e281
equal deleted inserted replaced
19214:0250047a365e 19215:f184fe1e2ac5
   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)