Mercurial > public > mercurial-scm > hg
comparison mercurial/bundle2.py @ 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 | b3a41f4d837b |
children | 8d75b9effa07 |
comparison
equal
deleted
inserted
replaced
33834:6e666cd59879 | 33835:057d31ceace3 |
---|---|
1881 | 1881 |
1882 @parthandler('pushvars') | 1882 @parthandler('pushvars') |
1883 def bundle2getvars(op, part): | 1883 def bundle2getvars(op, part): |
1884 '''unbundle a bundle2 containing shellvars on the server''' | 1884 '''unbundle a bundle2 containing shellvars on the server''' |
1885 # An option to disable unbundling on server-side for security reasons | 1885 # An option to disable unbundling on server-side for security reasons |
1886 if op.ui.configbool('push', 'pushvars.server', False): | 1886 if op.ui.configbool('push', 'pushvars.server'): |
1887 hookargs = {} | 1887 hookargs = {} |
1888 for key, value in part.advisoryparams: | 1888 for key, value in part.advisoryparams: |
1889 key = key.upper() | 1889 key = key.upper() |
1890 # We want pushed variables to have USERVAR_ prepended so we know | 1890 # We want pushed variables to have USERVAR_ prepended so we know |
1891 # they came from the --pushvar flag. | 1891 # they came from the --pushvar flag. |