diff mercurial/commands.py @ 26794:238d21f684b5

unbundle: use 'source' argument with applybundle This will let the hook get access to the 'source' value.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 20 Oct 2015 15:53:07 +0200
parents 13b861d1cce9
children 1760ca4ee919
line wrap: on
line diff
--- 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')