view mercurial/revlogutils/__init__.py @ 43551:3350d7aefe67

perf: make `perfphasesremote` use the new `index.has_node` api (If available) Differential Revision: https://phab.mercurial-scm.org/D7359
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 08 Nov 2019 13:26:55 +0100
parents a7c0c5b5a50f
children 9e1932eb41f9
line wrap: on
line source

# mercurial.revlogutils -- basic utilities for revlog
#
# Copyright 2019 Pierre-Yves David <pierre-yves.david@octobus.net>
#
# This software may be used and distributed according to the terms of the
# 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('unknown node: %s' % x)