hgext3rd/topic/stack.py
branchstable
changeset 3044 b185beb94df5
parent 2997 a61634f52742
child 3061 6f87042766cb
equal deleted inserted replaced
3043:033e00be9ce4 3044:b185beb94df5
    32         self.topic = topic
    32         self.topic = topic
    33         self.behinderror = None
    33         self.behinderror = None
    34         if topic is not None and branch is not None:
    34         if topic is not None and branch is not None:
    35             raise error.ProgrammingError('both branch and topic specified (not defined yet)')
    35             raise error.ProgrammingError('both branch and topic specified (not defined yet)')
    36         elif topic is not None:
    36         elif topic is not None:
    37             trevs = repo.revs("topic(%s) - obsolete()", topic)
    37             trevs = repo.revs("not obsolete() and topic(%s) - obsolete()", topic)
    38         elif branch is not None:
    38         elif branch is not None:
    39             trevs = repo.revs("branch(%s) - public() - obsolete() - topic()", branch)
    39             trevs = repo.revs("not public() and branch(%s) - obsolete() - topic()", branch)
    40         else:
    40         else:
    41             raise error.ProgrammingError('neither branch and topic specified (not defined yet)')
    41             raise error.ProgrammingError('neither branch and topic specified (not defined yet)')
    42         self._revs = trevs
    42         self._revs = trevs
    43 
    43 
    44     def __iter__(self):
    44     def __iter__(self):