hgext/obsolete.py
changeset 411 4c1997e41d18
parent 407 9fcbe7c47939
parent 409 c4cc1d5eba7a
child 412 7d30d1becfc4
--- a/hgext/obsolete.py	Tue Jul 31 12:47:56 2012 +0200
+++ b/hgext/obsolete.py	Thu Aug 02 18:52:15 2012 +0200
@@ -693,10 +693,18 @@
     if util.safehasattr(repo, '_journalfiles'): # Hg 2.2
         o_journalfiles = repo._journalfiles
     o_writejournal = repo._writejournal
+    o_hook = repo.hook
 
 
     class obsoletingrepo(repo.__class__):
 
+        # workaround
+        def hook(self, name, throw=False, **args):
+            if 'pushkey' in name:
+                args.pop('new')
+                args.pop('old')
+            return o_hook(name, throw=False, **args)
+
         ### Public method
         def obsoletedby(self, node):
             """return the set of node that make <node> obsolete (obj)"""