D359: pushvars: add a coreconfigitem for push.pushvars.server
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Aug 11 23:26:23 UTC 2017
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D359
AFFECTED FILES
mercurial/bundle2.py
mercurial/configitems.py
CHANGE DETAILS
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -370,6 +370,9 @@
coreconfigitem('progress', 'width',
default=dynamicdefault,
)
+coreconfigitem('push', 'pushvars.server',
+ default=False,
+)
coreconfigitem('server', 'bundle1',
default=True,
)
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -1884,7 +1884,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()
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list