changeset 34162:15794577bcf3

configitems: register the 'convert.git.saverev' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:34:14 +0200
parents d54ebe5bb411
children ed3ff1df715f
files hgext/convert/__init__.py hgext/convert/git.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,