diff -r 9d249f3de730 -r c97639ad6874 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Sat Jan 20 15:43:02 2018 -0800 +++ b/mercurial/bundlerepo.py Sat Jan 20 13:54:36 2018 -0800 @@ -543,7 +543,7 @@ kwargs = {} kwargs[r'common'] = common kwargs[r'heads'] = rheads - kwargs[r'bundlecaps'] = exchange.caps20to10(repo) + kwargs[r'bundlecaps'] = exchange.caps20to10(repo, role='client') kwargs[r'cg'] = True b2 = other.getbundle('incoming', **kwargs) fname = bundle = changegroup.writechunks(ui, b2._forwardchunks(),