Mercurial > public > mercurial-scm > hg
comparison mercurial/upgrade.py @ 45371:e58e234096de
repository: introduce constant for treemanifest requirement and use it
In future we will like to much cleaner logic around which requirement is for
working copy and which can go in store. To start with that, we first need to
de-clutter the requirement values spread around and replace them with constants.
Differential Revision: https://phab.mercurial-scm.org/D8916
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 08 Aug 2020 15:48:17 +0530 |
parents | a03c177a4679 |
children | 77b8588dd84e |
comparison
equal
deleted
inserted
replaced
45370:15d35f2ba474 | 45371:e58e234096de |
---|---|
24 scmutil, | 24 scmutil, |
25 util, | 25 util, |
26 vfs as vfsmod, | 26 vfs as vfsmod, |
27 ) | 27 ) |
28 | 28 |
29 from .interfaces import repository | |
29 from .utils import compression | 30 from .utils import compression |
30 | 31 |
31 # list of requirements that request a clone of all revlog if added/removed | 32 # list of requirements that request a clone of all revlog if added/removed |
32 RECLONES_REQUIREMENTS = { | 33 RECLONES_REQUIREMENTS = { |
33 b'generaldelta', | 34 b'generaldelta', |
56 requirements in the returned set. | 57 requirements in the returned set. |
57 """ | 58 """ |
58 return { | 59 return { |
59 # The upgrade code does not yet support these experimental features. | 60 # The upgrade code does not yet support these experimental features. |
60 # This is an artificial limitation. | 61 # This is an artificial limitation. |
61 b'treemanifest', | 62 repository.TREEMANIFEST_REQUIREMENT, |
62 # This was a precursor to generaldelta and was never enabled by default. | 63 # This was a precursor to generaldelta and was never enabled by default. |
63 # It should (hopefully) not exist in the wild. | 64 # It should (hopefully) not exist in the wild. |
64 b'parentdelta', | 65 b'parentdelta', |
65 # Upgrade should operate on the actual store, not the shared link. | 66 # Upgrade should operate on the actual store, not the shared link. |
66 b'shared', | 67 b'shared', |