--- a/mercurial/bundle2.py Wed Oct 15 04:19:37 2014 -0700
+++ b/mercurial/bundle2.py Tue Oct 14 01:27:25 2014 -0700
@@ -821,6 +821,8 @@
# for the whole processing scope.
op.gettransaction()
cg = changegroup.cg1unpacker(inpart, 'UN')
+ # the source and url passed here are overwritten by the one contained in
+ # the transaction.hookargs argument. So 'bundle2' is a placeholder
ret = changegroup.addchangegroup(op.repo, cg, 'bundle2', 'bundle2')
op.records.add('changegroup', {'return': ret})
if op.reply is not None: