Mercurial > hg
diff mercurial/pure/parsers.py @ 44034:ab595920de0e
revlogutils: move the NodeMap class in a dedicated nodemap module
We will introduce more nodemap related code, so it make sense to move the
existing code in that module first.
Differential Revision: https://phab.mercurial-scm.org/D7809
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 07 Jan 2020 12:26:37 +0100 |
parents | c207c46a86b9 |
children | 6f9e8e142cea |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Sun Dec 29 21:10:04 2019 -0500 +++ b/mercurial/pure/parsers.py Tue Jan 07 12:26:37 2020 +0100 @@ -13,10 +13,11 @@ from ..node import nullid, nullrev from .. import ( pycompat, - revlogutils, util, ) +from ..revlogutils import nodemap as nodemaputil + stringio = pycompat.bytesio @@ -55,7 +56,7 @@ @util.propertycache def _nodemap(self): - nodemap = revlogutils.NodeMap({nullid: nullrev}) + nodemap = nodemaputil.NodeMap({nullid: nullrev}) for r in range(0, len(self)): n = self[r][7] nodemap[n] = r