Show More
@@ -947,12 +947,18 b' class cg3packer(cg2packer):' | |||
|
947 | 947 | } |
|
948 | 948 | |
|
949 | 949 | def supportedversions(repo): |
|
950 | versions = _packermap.keys() | |
|
951 |
|
|
|
952 |
|
|
|
953 | repo.ui.configbool('experimental', 'treemanifest')) | |
|
954 | if not cg3: | |
|
955 | versions.remove('03') | |
|
950 | versions = set(_packermap.keys()) | |
|
951 | if ('treemanifest' in repo.requirements or | |
|
952 | repo.ui.configbool('experimental', 'treemanifest')): | |
|
953 | # Versions 01 and 02 support only flat manifests and it's just too | |
|
954 | # expensive to convert between the flat manifest and tree manifest on | |
|
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 | 962 | return versions |
|
957 | 963 | |
|
958 | 964 | def getbundler(version, repo, bundlecaps=None): |
General Comments 0
You need to be logged in to leave comments.
Login now