changeset 32957:067173e3c8a6

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 19 Jun 2017 22:14:37 -0700
parents 4f0a7f604449
children 4a3f1d362e5f
files mercurial/exchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: