Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 44035: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 | 8042856c90b6 |
children | de5d34ca01bd |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Dec 29 21:10:04 2019 -0500 +++ b/mercurial/revlog.py Tue Jan 07 12:26:37 2020 +0100 @@ -65,7 +65,6 @@ mdiff, policy, pycompat, - revlogutils, templatefilters, util, ) @@ -76,6 +75,7 @@ from .revlogutils import ( deltas as deltautil, flagutil, + nodemap as nodemaputil, sidedata as sidedatautil, ) from .utils import ( @@ -224,7 +224,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 @@ -273,7 +273,7 @@ def parseindex(self, data, inline): s = self.size index = [] - nodemap = revlogutils.NodeMap({nullid: nullrev}) + nodemap = nodemaputil.NodeMap({nullid: nullrev}) n = off = 0 l = len(data) while off + s <= l: