Mercurial > public > mercurial-scm > hg-stable
diff mercurial/upgrade.py @ 44876:ea9563e9e65a
nodemap: teach `hg debugformat` about the persistent nodemap option
We have a new requirement, we should display it.
Differential Revision: https://phab.mercurial-scm.org/D8430
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 14 Apr 2020 05:37:54 +0200 |
parents | e295ba238bd8 |
children | 526d69eeea31 |
line wrap: on
line diff
--- a/mercurial/upgrade.py Wed Apr 15 18:58:35 2020 +0200 +++ b/mercurial/upgrade.py Tue Apr 14 05:37:54 2020 +0200 @@ -374,6 +374,21 @@ @registerformatvariant +class persistentnodemap(requirementformatvariant): + name = b'persistent-nodemap' + + _requirement = localrepo.NODEMAP_REQUIREMENT + + default = False + + description = _( + b'persist the node -> rev mapping on disk to speedup lookup' + ) + + upgrademessage = _(b'Speedup revision lookup by node id.') + + +@registerformatvariant class copiessdc(requirementformatvariant): name = b'copies-sdc'