diff mercurial/revlogutils/__init__.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 9e1932eb41f9
children ac60a1366a49
line wrap: on
line diff
--- a/mercurial/revlogutils/__init__.py	Sun Dec 29 21:10:04 2019 -0500
+++ b/mercurial/revlogutils/__init__.py	Tue Jan 07 12:26:37 2020 +0100
@@ -6,9 +6,3 @@
 # GNU General Public License version 2 or any later version.
 
 from __future__ import absolute_import
-from .. import error
-
-
-class NodeMap(dict):
-    def __missing__(self, x):
-        raise error.RevlogError(b'unknown node: %s' % x)