hgext/fastannotate/error.py
author Boris Feld <boris.feld@octobus.net>
Thu, 08 Nov 2018 15:29:58 +0100
changeset 40653 bfbfd15d65bd
parent 39238 1ddb296e0dee
child 43076 2372284d9457
permissions -rw-r--r--
sparse-revlog: fast-path before computing payload size In this fast-path case, we do not need to compute the full delta chain payload. Since it comes with a significant cost, we avoid doing so if possible.

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