Show More
@@ -874,23 +874,23 b' class cg3packer(cg2packer):' | |||
|
874 | 874 | '03': (cg3packer, cg3unpacker), |
|
875 | 875 | } |
|
876 | 876 | |
|
877 |
def allsupportedversions( |
|
|
877 | def allsupportedversions(repo): | |
|
878 | 878 | versions = set(_packermap.keys()) |
|
879 | if not (ui.configbool('experimental', 'changegroup3') or | |
|
880 | ui.configbool('experimental', 'treemanifest')): | |
|
879 | if not (repo.ui.configbool('experimental', 'changegroup3') or | |
|
880 | repo.ui.configbool('experimental', 'treemanifest')): | |
|
881 | 881 | versions.discard('03') |
|
882 | 882 | return versions |
|
883 | 883 | |
|
884 | 884 | # Changegroup versions that can be applied to the repo |
|
885 | 885 | def supportedincomingversions(repo): |
|
886 |
versions = allsupportedversions(repo |
|
|
886 | versions = allsupportedversions(repo) | |
|
887 | 887 | if 'treemanifest' in repo.requirements: |
|
888 | 888 | versions.add('03') |
|
889 | 889 | return versions |
|
890 | 890 | |
|
891 | 891 | # Changegroup versions that can be created from the repo |
|
892 | 892 | def supportedoutgoingversions(repo): |
|
893 |
versions = allsupportedversions(repo |
|
|
893 | versions = allsupportedversions(repo) | |
|
894 | 894 | if 'treemanifest' in repo.requirements: |
|
895 | 895 | # Versions 01 and 02 support only flat manifests and it's just too |
|
896 | 896 | # expensive to convert between the flat manifest and tree manifest on |
General Comments 0
You need to be logged in to leave comments.
Login now