# HG changeset patch # User Laurent Charignon # Date 1452451944 28800 # Node ID aa42a6ad9c5c309585c419a23cafefcff500e0b3 # Parent 54f75dc488877567fab78d2ecf9c0815d52fa770 inhibit: fix _filterpublic Before this patch, _filterpublic would always filter rep._obsinhibit and not its "nodes" argument. Fortunately, we always called it with repo._obsinhibit as its "nodes" argument! diff -r 54f75dc48887 -r aa42a6ad9c5c hgext/inhibit.py --- a/hgext/inhibit.py Mon Jan 04 14:01:17 2016 -0800 +++ b/hgext/inhibit.py Sun Jan 10 10:52:24 2016 -0800 @@ -122,7 +122,7 @@ Public changesets are already immune to obsolescence""" getrev = repo.changelog.nodemap.get getphase = repo._phasecache.phase - return (n for n in repo._obsinhibit + return (n for n in nodes if getrev(n) is not None and getphase(repo, getrev(n))) def _inhibitmarkers(repo, nodes):