# HG changeset patch # User Pierre-Yves David # Date 1445349187 -7200 # Node ID 238d21f684b57194f0ab653e2c2473151021d3ac # Parent f37de5d44aea401af0b60c3e4bf798cc1c9235c2 unbundle: use 'source' argument with applybundle This will let the hook get access to the 'source' value. diff -r f37de5d44aea -r 238d21f684b5 mercurial/commands.py --- a/mercurial/commands.py Tue Oct 20 15:52:42 2015 +0200 +++ b/mercurial/commands.py Tue Oct 20 15:53:07 2015 +0200 @@ -6566,7 +6566,7 @@ if isinstance(gen, bundle2.unbundle20): tr = repo.transaction('unbundle') try: - op = bundle2.applybundle(repo, gen, tr) + op = bundle2.applybundle(repo, gen, tr, source='unbundle') tr.close() except error.BundleUnknownFeatureError as exc: raise error.Abort(_('%s: unknown bundle feature, %s')