Patchwork D9986: bundle2: pass the operation source down to the changegroup

login
register
mail settings
Submitter phabricator
Date Feb. 12, 2021, 9:26 a.m.
Message ID <differential-rev-PHID-DREV-i7sfkxs5vrq4mz7qignv-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48301/
State Superseded
Headers show

Comments

phabricator - Feb. 12, 2021, 9:26 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9986

AFFECTED FILES
  mercurial/bundle2.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -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.