Patchwork [10,of,27] configitems: register the 'convert.git.saverev' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <9610a6b85481b82d7285.1505285960@FB>
Download mbox | patch
Permalink /patch/23843/
State Accepted
Headers show

Comments

Boris Feld - Sept. 13, 2017, 6:59 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786454 -7200
#      ven. juin 30 03:34:14 2017 +0200
# Node ID 9610a6b85481b82d7285ef984b8007f89e97fd00
# Parent  1f322f5d18d0e2febbeca6479112cb8c6f30f64a
# EXP-Topic config.register.convert
configitems: register the 'convert.git.saverev' config

Patch

diff -r 1f322f5d18d0 -r 9610a6b85481 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:34:06 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r 1f322f5d18d0 -r 9610a6b85481 hgext/convert/git.py
--- a/hgext/convert/git.py	ven. juin 30 03:34:06 2017 +0200
+++ b/hgext/convert/git.py	ven. juin 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,