D359: pushvars: add a coreconfigitem for push.pushvars.server
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Aug 15 17:59:33 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG057d31ceace3: pushvars: add a coreconfigitem for push.pushvars.server (authored by pulkit).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D359?vs=820&id=963
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
@@ -361,6 +361,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
@@ -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()
To: pulkit, #hg-reviewers, lothiraldan
Cc: lothiraldan, mercurial-devel
More information about the Mercurial-devel
mailing list