Mercurial > hg
comparison hgext/convert/git.py @ 19121:478a04605ce1
splicemap: improve error handling when source is git (issue2084)
Implemented similar error handling that is done for hg in an earlier revision.
These are:
a. add checking for splicemap file format
b. add checking for each revision string formats
author | Ben Goswami <bengoswami@fb.com> |
---|---|
date | Thu, 25 Apr 2013 16:02:58 -0700 |
parents | 5fe58f9332a4 |
children | e8203629371b |
comparison
equal
deleted
inserted
replaced
19120:58e782f076e7 | 19121:478a04605ce1 |
---|---|
294 bookmarks[name] = rev | 294 bookmarks[name] = rev |
295 except Exception: | 295 except Exception: |
296 pass | 296 pass |
297 | 297 |
298 return bookmarks | 298 return bookmarks |
299 | |
300 def checkrevformat(self, revstr): | |
301 """ git revision string is a 40 byte hex """ | |
302 self.checkhexformat(revstr) | |
303 |