configitems: register the 'mq.plain' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:43:16 +0200
changeset 39675 5c150b70d0049c8401816262d272c94ea039d2a7
parent 39674 cac8c4e519513d7f674507f27cc5cfe7f118bfdd
child 39676 b5bbfe176004c27e31d0f81677479879fde6a7e3
push id569
push usergszorc@mozilla.com
push dateSat, 23 Sep 2017 03:02:59 +0000
configitems: register the 'mq.plain' config
hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -113,16 +113,19 @@ configtable = {}
 configitem = registrar.configitem(configtable)
 
 configitem('mq', 'git',
     default='auto',
 )
 configitem('mq', 'keepchanges',
     default=False,
 )
+configitem('mq', 'plain',
+    default=False,
+)
 
 # force load strip extension formerly included in mq and import some utility
 try:
     stripext = extensions.find('strip')
 except KeyError:
     # note: load is lazy so we could avoid the try-except,
     # but I (marmoute) prefer this explicit code.
     class dummyui(object):
@@ -458,17 +461,17 @@ class queue(object):
         boolmode = util.parsebool(gitmode)
         if boolmode is not None:
             if boolmode:
                 gitmode = 'yes'
             else:
                 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
     def applied(self):
         def parselines(lines):
             for l in lines:
                 entry = l.split(':', 1)
                 if len(entry) > 1: