--- a/mercurial/exchange.py Fri Aug 04 12:21:23 2017 -0700
+++ b/mercurial/exchange.py Mon Jul 31 09:59:42 2017 +0530
@@ -893,6 +893,14 @@
pushop.bkresult = 1
return handlereply
+@b2partsgenerator('pushvars', idx=0)
+def _getbundlesendvars(pushop, bundler):
+ '''send shellvars via bundle2'''
+ if getattr(pushop.repo, '_shellvars', ()):
+ part = bundler.newpart('pushvars')
+
+ for key, value in pushop.repo._shellvars.iteritems():
+ part.addparam(key, value, mandatory=False)
def _pushbundle2(pushop):
"""push data to the remote using bundle2