hgext/fastannotate/error.py
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Wed, 02 Oct 2024 14:51:56 +0100
changeset 51919 ceaf92d6d380
parent 51863 f4733654f144
permissions -rw-r--r--
tests: always access the mercurial repo through `helpers-testrepo.sh` In some contexts the mercurial repo needs to be accessed through system hg. That's what `helpers-testrepo.sh` enforces, but some tests incorrectly use the mercurial repo without going through that script. This patch fixes those tests.

# 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.
from __future__ import annotations


class CorruptedFileError(Exception):
    pass


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