hgext/inhibit.py
changeset 1362 73e5b5280c1c
parent 1346 9a1415f8b21b
child 1366 9c3ba42c582a
--- a/hgext/inhibit.py	Thu Jun 04 16:49:16 2015 -0700
+++ b/hgext/inhibit.py	Sat Jun 13 11:14:27 2015 -0700
@@ -172,7 +172,7 @@
     def inhibitposttransaction(transaction):
         # At the end of the transaction we catch all the new visible and
         # obsolete commit to inhibit them
-        visibleobsolete = repo.revs('(not hidden()) and obsolete()')
+        visibleobsolete = repo.revs('obsolete() - hidden()')
         ignoreset = set(getattr(repo, '_rebaseset', []))
         visibleobsolete = list(r for r in visibleobsolete if r not in ignoreset)
         if visibleobsolete: