bundle2: add a comment about addchangegroup source and url
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 14 Oct 2014 01:27:25 -0700
changeset 23001 4df9b5e62f70
parent 23000 90c425f80316
child 23002 2920a96f5839
bundle2: add a comment about addchangegroup source and url
mercurial/bundle2.py
--- 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: