D1672: py3: handle keyword arguments correctly in bundlerepo.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Tue Dec 12 23:25:53 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/D1672
AFFECTED FILES
mercurial/bundlerepo.py
CHANGE DETAILS
diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -541,10 +541,10 @@
and other.capable('bundle2'))
if canbundle2:
kwargs = {}
- kwargs['common'] = common
- kwargs['heads'] = rheads
- kwargs['bundlecaps'] = exchange.caps20to10(repo)
- kwargs['cg'] = True
+ kwargs[r'common'] = common
+ kwargs[r'heads'] = rheads
+ kwargs[r'bundlecaps'] = exchange.caps20to10(repo)
+ kwargs[r'cg'] = True
b2 = other.getbundle('incoming', **kwargs)
fname = bundle = changegroup.writechunks(ui, b2._forwardchunks(),
bundlename)
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list