hgext/convert/cvsps.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48946 642e31cb55f0
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
   464             else:
   464             else:
   465                 e.branch = None
   465                 e.branch = None
   466 
   466 
   467             # find the branches starting from this revision
   467             # find the branches starting from this revision
   468             branchpoints = set()
   468             branchpoints = set()
   469             for branch, revision in pycompat.iteritems(branchmap):
   469             for branch, revision in branchmap.items():
   470                 revparts = tuple([int(i) for i in revision.split(b'.')])
   470                 revparts = tuple([int(i) for i in revision.split(b'.')])
   471                 if len(revparts) < 2:  # bad tags
   471                 if len(revparts) < 2:  # bad tags
   472                     continue
   472                     continue
   473                 if revparts[-2] == 0 and revparts[-1] % 2 == 0:
   473                 if revparts[-2] == 0 and revparts[-1] % 2 == 0:
   474                     # normal branch
   474                     # normal branch