pushvars: add a coreconfigitem for push.pushvars.server
Differential Revision: https://phab.mercurial-scm.org/D359
--- 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,
)