hgext/convert/git.py
changeset 30664 ced0d686ecb3
parent 30663 1f21a6835604
child 30813 2cbbd4622ab0
--- a/hgext/convert/git.py	Thu Dec 22 23:28:11 2016 -0700
+++ b/hgext/convert/git.py	Thu Dec 22 23:28:35 2016 -0700
@@ -322,11 +322,13 @@
         tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
         tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
         date = tm + " " + str(tz)
+        saverev = self.ui.configbool('convert', 'git.saverev', True)
 
         c = common.commit(parents=parents, date=date, author=author,
                           desc=message,
                           rev=version,
-                          extra=extra)
+                          extra=extra,
+                          saverev=saverev)
         return c
 
     def numcommits(self):