changeset 4478:94743877e50b

stack: improve set combination logic
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 06 Apr 2019 15:50:15 +0200
parents faf99d48eda9
children d972041022cb
files hgext3rd/topic/stack.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Sat Apr 06 15:49:22 2019 +0200
+++ b/hgext3rd/topic/stack.py	Sat Apr 06 15:50:15 2019 +0200
@@ -46,10 +46,7 @@
     if not phasesets or None in phasesets[phases.draft:]:
         return repo.revs('(not public()) - obsolete()')
 
-    result = set()
-    for s in phasecache._phasesets[phases.draft:]:
-        result |= s
-
+    result = set.union(*phasesets[phases.draft:])
     result -= obsolete.getrevs(repo, 'obsolete')
     return result