changeset 33835:057d31ceace3

pushvars: add a coreconfigitem for push.pushvars.server Differential Revision: https://phab.mercurial-scm.org/D359
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 12 Aug 2017 04:47:40 +0530
parents 6e666cd59879
children 38a3767975a7
files mercurial/bundle2.py mercurial/configitems.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,
 )