Mercurial > public > mercurial-scm > hg
diff mercurial/upgrade.py @ 45372:77b8588dd84e
requirements: introduce new requirements related module
It was not clear where all requirements should and related APIs should be, this
patch introduces a requirements module which will have all exitsing requirements
and related APIs.
Differential Revision: https://phab.mercurial-scm.org/D8917
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 08 Aug 2020 16:24:12 +0530 |
parents | e58e234096de |
children | d7dcc75a3eae |
line wrap: on
line diff
--- a/mercurial/upgrade.py Sat Aug 08 15:48:17 2020 +0530 +++ b/mercurial/upgrade.py Sat Aug 08 16:24:12 2020 +0530 @@ -20,13 +20,13 @@ manifest, metadata, pycompat, + requirements, revlog, scmutil, util, vfs as vfsmod, ) -from .interfaces import repository from .utils import compression # list of requirements that request a clone of all revlog if added/removed @@ -59,7 +59,7 @@ return { # The upgrade code does not yet support these experimental features. # This is an artificial limitation. - repository.TREEMANIFEST_REQUIREMENT, + requirements.TREEMANIFEST_REQUIREMENT, # This was a precursor to generaldelta and was never enabled by default. # It should (hopefully) not exist in the wild. b'parentdelta',