diff -r 4f0a7f604449 -r 067173e3c8a6 mercurial/exchange.py --- a/mercurial/exchange.py Sat Jun 10 23:42:38 2017 -0700 +++ b/mercurial/exchange.py Mon Jun 19 22:14:37 2017 -0700 @@ -1997,7 +1997,7 @@ cg = readbundle(ui, fh, 'stream') if isinstance(cg, bundle2.unbundle20): - bundle2.processbundle(repo, cg, lambda: tr) + bundle2.applybundle(repo, cg, tr, 'clonebundles', url) elif isinstance(cg, streamclone.streamcloneapplier): cg.apply(repo) else: