comparison mercurial/changegroup.py @ 27931:1289a122cf3f stable

shelve: use cg3 for treemanifests Similar to previous change, this teaches shelve to pick the right changegroup version for repos that use treemanifests.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 19 Jan 2016 15:37:07 -0800
parents 3b2ac2115464
children ca8d2b73155d
comparison
equal deleted inserted replaced
27930:7cbb3a01fa38 27931:1289a122cf3f
961 versions.discard('03') 961 versions.discard('03')
962 return versions 962 return versions
963 963
964 def safeversion(repo): 964 def safeversion(repo):
965 # Finds the smallest version that it's safe to assume clients of the repo 965 # Finds the smallest version that it's safe to assume clients of the repo
966 # will support. 966 # will support. For example, all hg versions that support generaldelta also
967 # support changegroup 02.
967 versions = supportedversions(repo) 968 versions = supportedversions(repo)
968 if 'generaldelta' in repo.requirements: 969 if 'generaldelta' in repo.requirements:
969 versions.discard('01') 970 versions.discard('01')
970 assert versions 971 assert versions
971 return min(versions) 972 return min(versions)