# HG changeset patch # User Martin von Zweigbergk # Date 2017-06-20 05:14:37 # Node ID 067173e3c8a65b025233e229e869f0993b31ba90 # Parent 4f0a7f60444932dfed4db8b15c3b57d47494ee90 clonebundle: update hook arguments (BC) By calling applybundle() with 'clonebundles' and the url instead of calling processbundle(), the hooks will get different arguments: HG_SOURCE will be 'clonebundles' instead of 'bundle2' and HG_URL will be the url instead of 'bundle2'. This is consistent with the bundle1 behavior and seems like a bug fix, but I'm marking it BC anyway. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -1997,7 +1997,7 @@ def trypullbundlefromurl(ui, repo, url): 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: