equal
deleted
inserted
replaced
1899 self.ui.restoreconfig(quiet) |
1899 self.ui.restoreconfig(quiet) |
1900 return ret |
1900 return ret |
1901 |
1901 |
1902 def pushkey(self, namespace, key, old, new): |
1902 def pushkey(self, namespace, key, old, new): |
1903 try: |
1903 try: |
1904 self.hook('prepushkey', throw=True, namespace=namespace, key=key, |
1904 tr = self.currenttransaction() |
1905 old=old, new=new) |
1905 hookargs = {} |
|
1906 if tr is not None: |
|
1907 hookargs.update(tr.hookargs) |
|
1908 hookargs['namespace'] = namespace |
|
1909 hookargs['key'] = key |
|
1910 hookargs['old'] = old |
|
1911 hookargs['new'] = new |
|
1912 self.hook('prepushkey', throw=True, **hookargs) |
1906 except error.HookAbort, exc: |
1913 except error.HookAbort, exc: |
1907 self.ui.write_err(_("pushkey-abort: %s\n") % exc) |
1914 self.ui.write_err(_("pushkey-abort: %s\n") % exc) |
1908 if exc.hint: |
1915 if exc.hint: |
1909 self.ui.write_err(_("(%s)\n") % exc.hint) |
1916 self.ui.write_err(_("(%s)\n") % exc.hint) |
1910 return False |
1917 return False |