unbundle: use 'url' argument with applybundle
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 20 Oct 2015 15:56:22 +0200
changeset 26796 1760ca4ee919
parent 26795 dff05b3f47d2
child 26797 75d550b7d8f5
unbundle: use 'url' argument with applybundle This will let the hook get access to the 'url' value.
mercurial/commands.py
--- a/mercurial/commands.py	Tue Oct 20 15:55:04 2015 +0200
+++ b/mercurial/commands.py	Tue Oct 20 15:56:22 2015 +0200
@@ -6566,7 +6566,8 @@
             if isinstance(gen, bundle2.unbundle20):
                 tr = repo.transaction('unbundle')
                 try:
-                    op = bundle2.applybundle(repo, gen, tr, source='unbundle')
+                    op = bundle2.applybundle(repo, gen, tr, source='unbundle',
+                                             url='bundle:' + fname)
                     tr.close()
                 except error.BundleUnknownFeatureError as exc:
                     raise error.Abort(_('%s: unknown bundle feature, %s')