comparison mercurial/bundle2.py @ 39772:4a8bfec90ae6

bundle2: grab kwarg using sysstr # skip-blame just an r prefix on a string Differential Revision: https://phab.mercurial-scm.org/D4691
author Augie Fackler <augie@google.com>
date Fri, 21 Sep 2018 11:44:08 -0400
parents 1b5880352314
children d89d5bc06eaa
comparison
equal deleted inserted replaced
39771:e65697cce065 39772:4a8bfec90ae6
1670 requirements = _formatrequirementsspec(requirements) 1670 requirements = _formatrequirementsspec(requirements)
1671 params = "%s%s" % (urlreq.quote("requirements="), requirements) 1671 params = "%s%s" % (urlreq.quote("requirements="), requirements)
1672 return params 1672 return params
1673 1673
1674 def addpartbundlestream2(bundler, repo, **kwargs): 1674 def addpartbundlestream2(bundler, repo, **kwargs):
1675 if not kwargs.get('stream', False): 1675 if not kwargs.get(r'stream', False):
1676 return 1676 return
1677 1677
1678 if not streamclone.allowservergeneration(repo): 1678 if not streamclone.allowservergeneration(repo):
1679 raise error.Abort(_('stream data requested but server does not allow ' 1679 raise error.Abort(_('stream data requested but server does not allow '
1680 'this feature'), 1680 'this feature'),