Patchwork D6940: sidedata: use only changegroup3 if sidedata is in use

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2019, 4:08 p.m.
Message ID <differential-rev-PHID-DREV-pvls5t2ngcvzbrovatyp-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41894/
State Superseded
Headers show

Comments

phabricator - Oct. 1, 2019, 4:08 p.m.
marmoute created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is necessary to exchange the flags over the wire (and within bundles).

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -1293,6 +1293,11 @@ 
         #
         # (or even to push subset of history)
         needv03 = True
+    if 'exp-sidedata-flag' in repo.requirements:
+        needv03 = True
+        # don't attempt to use 01/02 until we do sidedata cleaning
+        versions.discard('01')
+        versions.discard('02')
     if not needv03:
         versions.discard('03')
     return versions