changeset 43132:8f807a83d53b

sidedata: use only changegroup3 if sidedata is in use This is necessary to exchange the flags over the wire (and within bundles). Differential Revision: https://phab.mercurial-scm.org/D6940
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Oct 2019 23:36:51 -0400
parents c17a63eb5d4c
children 3de4d13f22be
files mercurial/changegroup.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Sun Oct 06 23:36:51 2019 -0400
+++ b/mercurial/changegroup.py	Sun Oct 06 23:36:51 2019 -0400
@@ -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