configitems: register the 'convert.git.committeractions' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:33:29 +0200
changeset 34157 a608b46a5ed0
parent 34156 698cccf1ad28
child 34158 89e666798111
configitems: register the 'convert.git.committeractions' config
hgext/convert/__init__.py
hgext/convert/git.py
--- a/hgext/convert/__init__.py	Fri Jun 30 03:33:25 2017 +0200
+++ b/hgext/convert/__init__.py	Fri Jun 30 03:33:29 2017 +0200
@@ -43,6 +43,9 @@
 configitem('convert', 'cvsps.mergeto',
     default=None,
 )
+configitem('convert', 'git.committeractions',
+    default=lambda: ['messagedifferent'],
+)
 
 # Commands definition was moved elsewhere to ease demandload job.
 
--- a/hgext/convert/git.py	Fri Jun 30 03:33:25 2017 +0200
+++ b/hgext/convert/git.py	Fri Jun 30 03:33:29 2017 +0200
@@ -110,8 +110,7 @@
             raise error.Abort(_('copying of extra key is forbidden: %s') %
                               _(', ').join(sorted(banned)))
 
-        committeractions = self.ui.configlist('convert', 'git.committeractions',
-                                              'messagedifferent')
+        committeractions = self.ui.configlist('convert', 'git.committeractions')
 
         messagedifferent = None
         messagealways = None