equal
deleted
inserted
replaced
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 |