diff 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
line wrap: on
line diff
--- a/hgext/convert/git.py	Thu Apr 25 11:50:26 2013 -0700
+++ b/hgext/convert/git.py	Thu Apr 25 16:02:58 2013 -0700
@@ -296,3 +296,8 @@
                 pass
 
         return bookmarks
+
+    def checkrevformat(self, revstr):
+        """ git revision string is a 40 byte hex """
+        self.checkhexformat(revstr)
+