comparison mercurial/changegroup.py @ 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 8ff1ecfadcd1
children ea0b44255a31
comparison
equal deleted inserted replaced
43131:c17a63eb5d4c 43132:8f807a83d53b
1477 # contains both normal and tree manifest at the same time. so using 1477 # contains both normal and tree manifest at the same time. so using
1478 # older version to pull data is viable 1478 # older version to pull data is viable
1479 # 1479 #
1480 # (or even to push subset of history) 1480 # (or even to push subset of history)
1481 needv03 = True 1481 needv03 = True
1482 if b'exp-sidedata-flag' in repo.requirements:
1483 needv03 = True
1484 # don't attempt to use 01/02 until we do sidedata cleaning
1485 versions.discard(b'01')
1486 versions.discard(b'02')
1482 if not needv03: 1487 if not needv03:
1483 versions.discard(b'03') 1488 versions.discard(b'03')
1484 return versions 1489 return versions
1485 1490
1486 1491