mercurial/revlogutils/nodemap.py
author Gregory Szorc <gregory.szorc@gmail.com>
Sat, 07 Dec 2019 13:13:48 -0800
changeset 44068 4b953cb17612
parent 44034 ab595920de0e
child 44307 c577bb4a04d4
permissions -rw-r--r--
hg-core: rustfmt path.rs The file as vendored does not conform to our source formatting conventions. Let's reformat it so it does. # skip-blame automated code reformatting Differential Revision: https://phab.mercurial-scm.org/D7580

# nodemap.py - nodemap related code and utilities
#
# Copyright 2019 Pierre-Yves David <pierre-yves.david@octobus.net>
# Copyright 2019 George Racinet <georges.racinet@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(b'unknown node: %s' % x)