Patchwork [05,of,27] configitems: register the 'convert.git.committeractions' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:59 a.m.
Message ID <d2b588a305858f034453.1505285955@FB>
Download mbox | patch
Permalink /patch/23835/
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 1498786409 -7200
#      ven. juin 30 03:33:29 2017 +0200
# Node ID d2b588a305858f034453b20d7735f35c13d33fc8
# Parent  cb42d350be7955d112360633b3feb6e124dc55ca
# EXP-Topic config.register.convert
configitems: register the 'convert.git.committeractions' config

Patch

diff -r cb42d350be79 -r d2b588a30585 hgext/convert/__init__.py
--- a/hgext/convert/__init__.py	ven. juin 30 03:33:25 2017 +0200
+++ b/hgext/convert/__init__.py	ven. juin 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.
 
diff -r cb42d350be79 -r d2b588a30585 hgext/convert/git.py
--- a/hgext/convert/git.py	ven. juin 30 03:33:25 2017 +0200
+++ b/hgext/convert/git.py	ven. juin 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