Submitter | Laurent Charignon |
---|---|
Date | June 15, 2015, 4:55 p.m. |
Message ID | <9f45d300deb274d104b4.1434387357@dev919.prn2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/9636/ |
State | Accepted |
Headers | show |
Comments
On 06/15/2015 09:55 AM, Laurent Charignon wrote: > # HG changeset patch > # User Laurent Charignon<lcharignon@fb.com> > # Date 1434219267 25200 > # Sat Jun 13 11:14:27 2015 -0700 > # Node ID 9f45d300deb274d104b40759282a3b98879f1b5b > # Parent 043e5ca9322fc92cd90b9ff3dc462bcbfbd3c095 > inhibit: improve performance of transaction wrapping Push to evolve-main, thanks.
Patch
diff --git a/hgext/inhibit.py b/hgext/inhibit.py --- a/hgext/inhibit.py +++ b/hgext/inhibit.py @@ -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: