Patchwork D10345: bundle2: remove restriction around sidedata

login
register
mail settings
Submitter phabricator
Date April 9, 2021, 8:50 a.m.
Message ID <differential-rev-PHID-DREV-2mnyk2qfgnbchxaxi4lj-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48659/
State Superseded
Headers show

Comments

phabricator - April 9, 2021, 8:50 a.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  We are now capable of generating the missing sidedata on-the-fly.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -2011,13 +2011,6 @@ 
         )
         scmutil.writereporequirements(op.repo)
 
-    bundlesidedata = bool(b'exp-sidedata' in inpart.params)
-    reposidedata = bool(b'exp-sidedata-flag' in op.repo.requirements)
-    if reposidedata and not bundlesidedata:
-        msg = b"repository is using sidedata but the bundle source do not"
-        hint = b'this is currently unsupported'
-        raise error.Abort(msg, hint=hint)
-
     extrakwargs = {}
     targetphase = inpart.params.get(b'targetphase')
     if targetphase is not None: