hgext3rd/topic/stack.py
changeset 4474 931c8f6f4b1b
parent 4436 ef155f624670
child 4477 faf99d48eda9
--- a/hgext3rd/topic/stack.py	Fri Apr 05 17:45:59 2019 +0200
+++ b/hgext3rd/topic/stack.py	Wed Apr 03 17:20:34 2019 +0800
@@ -43,9 +43,7 @@
     this area.
     """
     phasecache = repo._phasecache
-    if not phasecache._phasesets:
-        return repo.revs('(not public()) - obsolete()')
-    if any(s is None for s in phasecache._phasesets):
+    if not phasecache._phasesets or None in phasecache._phasesets:
         return repo.revs('(not public()) - obsolete()')
 
     result = set()