# HG changeset patch # User Pierre-Yves David # Date 2019-10-07 03:36:51 # Node ID 8f807a83d53b276e814db6a50704863e5b904e3b # Parent c17a63eb5d4c6d39567ea2aadd7687af9213526f 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 diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -1479,6 +1479,11 @@ def allsupportedversions(repo): # # (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