hgext/fastannotate/error.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 19 Aug 2019 12:30:02 -0700
changeset 42864 170b070ec6a5
parent 39238 1ddb296e0dee
child 43076 2372284d9457
permissions -rw-r--r--
tests: demonstrate crash when committing subset of copies to changeset When writing copy metadata to the changeset and not committing all copies in the dirstate, we get a ProgrammingError. This commit adds two tests showing how to trigger this bug. Differential Revision: https://phab.mercurial-scm.org/D6749

# 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 absolute_import

class CorruptedFileError(Exception):
    pass

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