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

login
register
mail settings
Submitter phabricator
Date Oct. 8, 2019, 12:36 a.m.
Message ID <629202d7421b08df0efae00191d22151@localhost.localdomain>
Download mbox | patch
Permalink /patch/42078/
State Not Applicable
Headers show

Comments

phabricator - Oct. 8, 2019, 12:36 a.m.
marmoute updated this revision to Diff 16944.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6940?vs=16743&id=16944

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6940/new/

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
@@ -1479,6 +1479,11 @@ 
         #
         # (or even to push subset of history)
         needv03 = True
+    if b'exp-sidedata-flag' in repo.requirements:
+        needv03 = True
+        # don't attempt to use 01/02 until we do sidedata cleaning
+        versions.discard(b'01')
+        versions.discard(b'02')
     if not needv03:
         versions.discard(b'03')
     return versions