changeset 47082:1680c94741f8

bundle2: remove restriction around sidedata We are now capable of generating the missing sidedata on-the-fly. Differential Revision: https://phab.mercurial-scm.org/D10345
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 08 Apr 2021 16:30:10 +0200
parents 223b47235d1c
children 81eb7091c494
files mercurial/bundle2.py
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundle2.py	Thu Apr 08 16:55:17 2021 +0200
+++ b/mercurial/bundle2.py	Thu Apr 08 16:30:10 2021 +0200
@@ -2013,13 +2013,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: