##// END OF EJS Templates
changegroup: don't limit cgv4 to revlogv2 repos...
Raphaël Gomès -
r47842:08e26ef4 default
parent child Browse files
Show More
@@ -1689,11 +1689,14 b' def allsupportedversions(repo):'
1689 #
1689 #
1690 # (or even to push subset of history)
1690 # (or even to push subset of history)
1691 needv03 = True
1691 needv03 = True
1692 has_revlogv2 = requirements.REVLOGV2_REQUIREMENT in repo.requirements
1693 if not has_revlogv2:
1694 versions.discard(b'04')
1695 if not needv03:
1692 if not needv03:
1696 versions.discard(b'03')
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 return versions
1700 return versions
1698
1701
1699
1702
@@ -904,6 +904,11 b' coreconfigitem('
904 )
904 )
905 coreconfigitem(
905 coreconfigitem(
906 b'experimental',
906 b'experimental',
907 b'changegroup4',
908 default=False,
909 )
910 coreconfigitem(
911 b'experimental',
907 b'cleanup-as-archived',
912 b'cleanup-as-archived',
908 default=False,
913 default=False,
909 )
914 )
General Comments 0
You need to be logged in to leave comments. Login now