# HG changeset patch # User Brandon Parsons # Date 2010-03-04 20:32:01 # Node ID 278d45703ac26f595e5116ddca45edbb5d5b21a6 # Parent d703906d02abce64cdfbc5cf4b29babf9536f47c cvs: skip bad tags If the CVS repo somehow has a symbolic name that references a revision consisting of a single number (e.g. BAD_TAG: 1), convert will fail when attempting to find the branches, preventing the initial import from working. This patch skips those symbolic names--without warning. diff --git a/hgext/convert/cvsps.py b/hgext/convert/cvsps.py --- a/hgext/convert/cvsps.py +++ b/hgext/convert/cvsps.py @@ -402,6 +402,8 @@ def createlog(ui, directory=None, root=" branchpoints = set() for branch, revision in branchmap.iteritems(): revparts = tuple([int(i) for i in revision.split('.')]) + if len(revparts) < 2: # bad tags + continue if revparts[-2] == 0 and revparts[-1] % 2 == 0: # normal branch if revparts[:-2] == e.revision: