hgext3rd/topic/stack.py
changeset 4477 faf99d48eda9
parent 4474 931c8f6f4b1b
child 4478 94743877e50b
--- a/hgext3rd/topic/stack.py	Tue Apr 02 12:41:57 2019 +0530
+++ b/hgext3rd/topic/stack.py	Sat Apr 06 15:49:22 2019 +0200
@@ -42,8 +42,8 @@
     The intend is to build something more efficient than what revsets do in
     this area.
     """
-    phasecache = repo._phasecache
-    if not phasecache._phasesets or None in phasecache._phasesets:
+    phasesets = repo._phasecache._phasesets
+    if not phasesets or None in phasesets[phases.draft:]:
         return repo.revs('(not public()) - obsolete()')
 
     result = set()