hgext3rd/topic/stack.py
changeset 2684 90e11985d0cc
parent 2670 f5d52fa1cd55
child 2712 f19b314d8475
equal deleted inserted replaced
2683:d22090c6e68f 2684:90e11985d0cc
    15     if topic is not None and branch is not None:
    15     if topic is not None and branch is not None:
    16         raise error.ProgrammingError('both branch and topic specified (not defined yet)')
    16         raise error.ProgrammingError('both branch and topic specified (not defined yet)')
    17     elif topic is not None:
    17     elif topic is not None:
    18         trevs = repo.revs("topic(%s) - obsolete()", topic)
    18         trevs = repo.revs("topic(%s) - obsolete()", topic)
    19     elif branch is not None:
    19     elif branch is not None:
    20         trevs = repo.revs("branch(%s) - obsolete()", branch)
    20         trevs = repo.revs("branch(%s) - public() - obsolete() - topic()", branch)
    21     else:
    21     else:
    22         raise error.ProgrammingError('neither branch and topic specified (not defined yet)')
    22         raise error.ProgrammingError('neither branch and topic specified (not defined yet)')
    23     return _orderrevs(repo, trevs)
    23     return _orderrevs(repo, trevs)
    24 
    24 
    25 def labelsgen(prefix, labelssuffix):
    25 def labelsgen(prefix, labelssuffix):