# HG changeset patch # User Pierre-Yves David # Date 2014-10-14 08:27:25 # Node ID 4df9b5e62f702e74ed688ea0e5aa94057ac337c4 # Parent 90c425f80316ef95c2b168c08c00de2efd43c912 bundle2: add a comment about addchangegroup source and url diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py --- a/mercurial/bundle2.py +++ b/mercurial/bundle2.py @@ -821,6 +821,8 @@ def handlechangegroup(op, inpart): # 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: