configitems: register the 'convert.git.saverev' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:34:14 +0200
changeset 34162 15794577bcf3
parent 34161 d54ebe5bb411
child 34163 ed3ff1df715f
configitems: register the 'convert.git.saverev' config
hgext/convert/__init__.py
hgext/convert/git.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:34:06 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:34:14 2017 +0200
@@ -58,6 +58,9 @@
 configitem('convert', 'git.renamelimit',
     default=400,
 )
+configitem('convert', 'git.saverev',
+    default=True,
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:34:06 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 30 03:34:14 2017 +0200
@@ -372,7 +372,7 @@
         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)
+        saverev = self.ui.configbool('convert', 'git.saverev')
 
         c = common.commit(parents=parents, date=date, author=author,
                           desc=message,