mercurial/localrepo.py
changeset 23426 19ebd2f88fc7
parent 23379 86c6f06feb04
parent 23416 53a65929ef1f
child 23510 065c0334846f
equal deleted inserted replaced
23411:2d86f4e38c08 23426:19ebd2f88fc7
  1765         finally:
  1765         finally:
  1766             self.ui.restoreconfig(quiet)
  1766             self.ui.restoreconfig(quiet)
  1767         return ret
  1767         return ret
  1768 
  1768 
  1769     def pushkey(self, namespace, key, old, new):
  1769     def pushkey(self, namespace, key, old, new):
  1770         self.hook('prepushkey', throw=True, namespace=namespace, key=key,
  1770         try:
  1771                   old=old, new=new)
  1771             self.hook('prepushkey', throw=True, namespace=namespace, key=key,
       
  1772                       old=old, new=new)
       
  1773         except error.HookAbort, exc:
       
  1774             self.ui.write_err(_("pushkey-abort: %s\n") % exc)
       
  1775             if exc.hint:
       
  1776                 self.ui.write_err(_("(%s)\n") % exc.hint)
       
  1777             return False
  1772         self.ui.debug('pushing key for "%s:%s"\n' % (namespace, key))
  1778         self.ui.debug('pushing key for "%s:%s"\n' % (namespace, key))
  1773         ret = pushkey.push(self, namespace, key, old, new)
  1779         ret = pushkey.push(self, namespace, key, old, new)
  1774         self.hook('pushkey', namespace=namespace, key=key, old=old, new=new,
  1780         self.hook('pushkey', namespace=namespace, key=key, old=old, new=new,
  1775                   ret=ret)
  1781                   ret=ret)
  1776         return ret
  1782         return ret