hgext/convert/cvsps.py
changeset 49284 d44e3c45f0e4
parent 48946 642e31cb55f0
child 49904 f3e95e5a5895
equal deleted inserted replaced
49283:44b26349127b 49284:d44e3c45f0e4
   830             # first changeset on a new branch
   830             # first changeset on a new branch
   831             # the parent is a changeset with the branch in its
   831             # the parent is a changeset with the branch in its
   832             # branchpoints such that it is the latest possible
   832             # branchpoints such that it is the latest possible
   833             # commit without any intervening, unrelated commits.
   833             # commit without any intervening, unrelated commits.
   834 
   834 
   835             for candidate in pycompat.xrange(i):
   835             for candidate in range(i):
   836                 if c.branch not in changesets[candidate].branchpoints:
   836                 if c.branch not in changesets[candidate].branchpoints:
   837                     if p is not None:
   837                     if p is not None:
   838                         break
   838                         break
   839                     continue
   839                     continue
   840                 p = candidate
   840                 p = candidate