Patchwork [3,of,4] configitems: register the 'mq.plain' config

login
register
mail settings
Submitter Boris Feld
Date Sept. 13, 2017, 6:31 a.m.
Message ID <50f09e900eb1a9b85b03.1505284274@FB>
Download mbox | patch
Permalink /patch/23828/
State Accepted
Headers show

Comments

Boris Feld - Sept. 13, 2017, 6:31 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498786996 -7200
#      ven. juin 30 03:43:16 2017 +0200
# Node ID 50f09e900eb1a9b85b03c673922605fa4cebbe28
# Parent  7989e079e5fa27b7b185df9b0a5b7b2a80e025f6
# EXP-Topic config.register.mq
configitems: register the 'mq.plain' config

Patch

diff -r 7989e079e5fa -r 50f09e900eb1 hgext/mq.py
--- a/hgext/mq.py	ven. juin 30 03:43:15 2017 +0200
+++ b/hgext/mq.py	ven. juin 30 03:43:16 2017 +0200
@@ -118,6 +118,9 @@ 
 configitem('mq', 'keepchanges',
     default=False,
 )
+configitem('mq', 'plain',
+    default=False,
+)
 
 # force load strip extension formerly included in mq and import some utility
 try:
@@ -463,7 +466,7 @@ 
                 gitmode = 'no'
         self.gitmode = gitmode
         # deprecated config: mq.plain
-        self.plainmode = ui.configbool('mq', 'plain', False)
+        self.plainmode = ui.configbool('mq', 'plain')
         self.checkapplied = True
 
     @util.propertycache