hgext/fastannotate/error.py
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 10 Jul 2024 18:19:32 -0400
changeset 51677 df6ce326936f
parent 48875 6000f5b25c9b
child 51863 f4733654f144
permissions -rw-r--r--
typing: add a few type hints to `mercurial/revlog.py` Somewhere between hg 3dbc7b1ecaba and hg 8e3f6b5bf720, pytype stopped being able to infer the type for `_docket_file` and `compress()`. Lock those types in before they get lost.

# Copyright 2016-present Facebook. All Rights Reserved.
#
# error: errors used in fastannotate
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.


class CorruptedFileError(Exception):
    pass


class CannotReuseError(Exception):
    """cannot reuse or update the cache incrementally"""