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 |