D6940: sidedata: use only changegroup3 if sidedata is in use
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Wed Oct 9 12:46:14 EDT 2019
Closed by commit rHG8f807a83d53b: sidedata: use only changegroup3 if sidedata is in use (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6940?vs=16944&id=16994
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
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
To: marmoute, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list