Mercurial > evolve
diff hgext3rd/topic/stack.py @ 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 | 48521a49a07e |
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