pushvars: add a coreconfigitem for push.pushvars.server
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 12 Aug 2017 04:47:40 +0530
changeset 33835 057d31ceace3
parent 33834 6e666cd59879
child 33836 38a3767975a7
pushvars: add a coreconfigitem for push.pushvars.server Differential Revision: https://phab.mercurial-scm.org/D359
mercurial/bundle2.py
mercurial/configitems.py
--- a/mercurial/bundle2.py	Tue Jul 18 02:05:19 2017 -0700
+++ b/mercurial/bundle2.py	Sat Aug 12 04:47:40 2017 +0530
@@ -1883,7 +1883,7 @@
 def bundle2getvars(op, part):
     '''unbundle a bundle2 containing shellvars on the server'''
     # An option to disable unbundling on server-side for security reasons
-    if op.ui.configbool('push', 'pushvars.server', False):
+    if op.ui.configbool('push', 'pushvars.server'):
         hookargs = {}
         for key, value in part.advisoryparams:
             key = key.upper()
--- a/mercurial/configitems.py	Tue Jul 18 02:05:19 2017 -0700
+++ b/mercurial/configitems.py	Sat Aug 12 04:47:40 2017 +0530
@@ -361,6 +361,9 @@
 coreconfigitem('progress', 'width',
     default=dynamicdefault,
 )
+coreconfigitem('push', 'pushvars.server',
+    default=False,
+)
 coreconfigitem('server', 'bundle1',
     default=True,
 )