changeset 46519:83ac7c91e172

bundle2: pass the operation source down to the changegroup This is currently not used by anything in core (and redundant with the url), the real source information is much more useful. This is going to be used in sidedata exchange patches coming soon. Differential Revision: https://phab.mercurial-scm.org/D9986
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 12 Feb 2021 09:53:48 +0100
parents 85ec89c47a04
children c82d6363bc9e
files mercurial/bundle2.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Fri Feb 12 13:27:03 2021 -0800
+++ b/mercurial/bundle2.py	Fri Feb 12 09:53:48 2021 +0100
@@ -2001,7 +2001,7 @@
         op,
         cg,
         tr,
-        b'bundle2',
+        op.source,
         b'bundle2',
         expectedtotal=nbchangesets,
         **extrakwargs
@@ -2083,7 +2083,7 @@
         raise error.Abort(
             _(b'%s: not a bundle version 1.0') % util.hidepassword(raw_url)
         )
-    ret = _processchangegroup(op, cg, tr, b'bundle2', b'bundle2')
+    ret = _processchangegroup(op, cg, tr, op.source, b'bundle2')
     if op.reply is not None:
         # This is definitely not the final form of this
         # return. But one need to start somewhere.