hgext/inhibit.py
changeset 1292 62229e7451f7
parent 1247 f96dad835054
child 1293 dc5528e04c06
--- a/hgext/inhibit.py	Wed Apr 29 11:42:06 2015 -0700
+++ b/hgext/inhibit.py	Mon Apr 06 15:44:00 2015 -0700
@@ -48,6 +48,11 @@
                 obsinhibit.add(raw[i:i+20])
             return obsinhibit
 
+        def commit(self, *args, **kwargs):
+            newnode = super(obsinhibitedrepo, self).commit(*args, **kwargs)
+            _inhibitmarkers(repo, [newnode])
+            return newnode
+
     # Wrapping this to inhibit obsolete revs resulting from a transaction
     extensions.wrapfunction(localrepo.localrepository,
                             'transaction', transactioncallback)