view mercurial/revlogutils/__init__.py @ 43875:8376d5d62d36

graft: reuse cmdutl.resolvecommitoptions() Differential Revision: https://phab.mercurial-scm.org/D7632
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 12 Dec 2019 15:30:16 -0800
parents 9e1932eb41f9
children ab595920de0e
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(b'unknown node: %s' % x)