hgext3rd/topic/destination.py
changeset 2005 093af1c7d58d
parent 1986 042356d5ba59
child 2006 c817efec4afc
equal deleted inserted replaced
2004:410b7153480a 2005:093af1c7d58d
    17     if sourceset is None:
    17     if sourceset is None:
    18        p1 = repo['.']
    18        p1 = repo['.']
    19     else:
    19     else:
    20         # XXX: using only the max here is flacky. That code should eventually
    20         # XXX: using only the max here is flacky. That code should eventually
    21         # be updated to take care of the whole sourceset.
    21         # be updated to take care of the whole sourceset.
    22        p1 =  repo[max(sourceset)]
    22        p1 = repo[max(sourceset)]
    23     top = p1.topic()
    23     top = p1.topic()
    24     if top:
    24     if top:
    25         revs = repo.revs('topic(%s) - obsolete()', top)
    25         revs = repo.revs('topic(%s) - obsolete()', top)
    26         deps, rdeps = builddependencies(repo, revs)
    26         deps, rdeps = builddependencies(repo, revs)
    27         heads = [r for r in revs if not rdeps[r]]
    27         heads = [r for r in revs if not rdeps[r]]