Show More
@@ -947,12 +947,18 b' class cg3packer(cg2packer):' | |||||
947 | } |
|
947 | } | |
948 |
|
948 | |||
949 | def supportedversions(repo): |
|
949 | def supportedversions(repo): | |
950 | versions = _packermap.keys() |
|
950 | versions = set(_packermap.keys()) | |
951 |
|
|
951 | if ('treemanifest' in repo.requirements or | |
952 |
|
|
952 | repo.ui.configbool('experimental', 'treemanifest')): | |
953 | repo.ui.configbool('experimental', 'treemanifest')) |
|
953 | # Versions 01 and 02 support only flat manifests and it's just too | |
954 | if not cg3: |
|
954 | # expensive to convert between the flat manifest and tree manifest on | |
955 | versions.remove('03') |
|
955 | # the fly. Since tree manifests are hashed differently, all of history | |
|
956 | # would have to be converted. Instead, we simply don't even pretend to | |||
|
957 | # support versions 01 and 02. | |||
|
958 | versions.discard('01') | |||
|
959 | versions.discard('02') | |||
|
960 | elif not repo.ui.configbool('experimental', 'changegroup3'): | |||
|
961 | versions.discard('03') | |||
956 | return versions |
|
962 | return versions | |
957 |
|
963 | |||
958 | def getbundler(version, repo, bundlecaps=None): |
|
964 | def getbundler(version, repo, bundlecaps=None): |
General Comments 0
You need to be logged in to leave comments.
Login now