Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/upgrade.py Tue Jul 21 22:13:54 2020 +0200 +++ b/mercurial/upgrade.py Sat Aug 08 15:48:17 2020 +0530 @@ -26,6 +26,7 @@ vfs as vfsmod, ) +from .interfaces import repository from .utils import compression # list of requirements that request a clone of all revlog if added/removed @@ -58,7 +59,7 @@ return { # The upgrade code does not yet support these experimental features. # This is an artificial limitation. - b'treemanifest', + repository.TREEMANIFEST_REQUIREMENT, # This was a precursor to generaldelta and was never enabled by default. # It should (hopefully) not exist in the wild. b'parentdelta',