changeset 23001:4df9b5e62f70

bundle2: add a comment about addchangegroup source and url
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 14 Oct 2014 01:27:25 -0700
parents 90c425f80316
children 2920a96f5839
files mercurial/bundle2.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: