hgext3rd/topic/stack.py
changeset 4477 faf99d48eda9
parent 4474 931c8f6f4b1b
child 4478 94743877e50b
equal deleted inserted replaced
4476:f0bda6a6d93b 4477:faf99d48eda9
    40     """build the smaller set of revs that might be part of a stack.
    40     """build the smaller set of revs that might be part of a stack.
    41 
    41 
    42     The intend is to build something more efficient than what revsets do in
    42     The intend is to build something more efficient than what revsets do in
    43     this area.
    43     this area.
    44     """
    44     """
    45     phasecache = repo._phasecache
    45     phasesets = repo._phasecache._phasesets
    46     if not phasecache._phasesets or None in phasecache._phasesets:
    46     if not phasesets or None in phasesets[phases.draft:]:
    47         return repo.revs('(not public()) - obsolete()')
    47         return repo.revs('(not public()) - obsolete()')
    48 
    48 
    49     result = set()
    49     result = set()
    50     for s in phasecache._phasesets[phases.draft:]:
    50     for s in phasecache._phasesets[phases.draft:]:
    51         result |= s
    51         result |= s