hgext/inhibit.py
changeset 1338 77cbf9121e8a
parent 1334 b8f880d4171d
child 1339 0e2eb196923a
--- a/hgext/inhibit.py	Wed May 13 09:03:11 2015 -0700
+++ b/hgext/inhibit.py	Thu May 14 15:59:06 2015 -0700
@@ -160,7 +160,8 @@
     Public changesets are already immune to obsolescence"""
     getrev = repo.changelog.nodemap.get
     getphase = repo._phasecache.phase
-    return (n for n in repo._obsinhibit if getphase(repo, getrev(n)))
+    return (n for n in repo._obsinhibit
+            if getrev(n) is not None and getphase(repo, getrev(n)))
 
 def _inhibitmarkers(repo, nodes):
     """add marker inhibitor for all obsolete revision under <nodes>