Show More
@@ -1689,11 +1689,14 b' def allsupportedversions(repo):' | |||
|
1689 | 1689 | # |
|
1690 | 1690 | # (or even to push subset of history) |
|
1691 | 1691 | needv03 = True |
|
1692 | has_revlogv2 = requirements.REVLOGV2_REQUIREMENT in repo.requirements | |
|
1693 | if not has_revlogv2: | |
|
1694 | versions.discard(b'04') | |
|
1695 | 1692 | if not needv03: |
|
1696 | 1693 | versions.discard(b'03') |
|
1694 | want_v4 = ( | |
|
1695 | repo.ui.configbool(b'experimental', b'changegroup4') | |
|
1696 | or requirements.REVLOGV2_REQUIREMENT in repo.requirements | |
|
1697 | ) | |
|
1698 | if not want_v4: | |
|
1699 | versions.discard(b'04') | |
|
1697 | 1700 | return versions |
|
1698 | 1701 | |
|
1699 | 1702 |
General Comments 0
You need to be logged in to leave comments.
Login now