hgext/convert/common.py
changeset 19122 83973dc1bfe9
parent 19120 58e782f076e7
child 20373 e8203629371b
equal deleted inserted replaced
19121:478a04605ce1 19122:83973dc1bfe9
    65 
    65 
    66     def checkhexformat(self, revstr):
    66     def checkhexformat(self, revstr):
    67         """ fails if revstr is not a 40 byte hex. mercurial and git both uses
    67         """ fails if revstr is not a 40 byte hex. mercurial and git both uses
    68             such format for their revision numbering
    68             such format for their revision numbering
    69         """
    69         """
    70         matchobj = re.match(r'[0-9a-fA-F]{40,40}$', revstr)
    70         if not re.match(r'[0-9a-fA-F]{40,40}$', revstr):
    71         if matchobj is None:
       
    72             raise util.Abort(_('splicemap entry %s is not a valid revision'
    71             raise util.Abort(_('splicemap entry %s is not a valid revision'
    73                                ' identifier') % revstr)
    72                                ' identifier') % revstr)
    74 
    73 
    75     def before(self):
    74     def before(self):
    76         pass
    75         pass