hgext/fastannotate/error.py
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 06 Feb 2019 14:57:08 -0800
changeset 41591 4d4842445afc
parent 39210 1ddb296e0dee
child 43076 2372284d9457
permissions -rw-r--r--
revert: always show relative path to .orig backup This helps make some future patches easier when I replace origpath() by another function that works with repo-relative paths (origpath() works with cwd-relative paths). Always showing a relative path seems a little more user-friendly and is more consistent between configured ui.origbackuppath and not. OTOH, it's annoying if ui.origbackuppath is far outside the repo. This is just --verbose output, so I don't think it's worth spending much time on (I've already wasted too many hours on it). Differential Revision: https://phab.mercurial-scm.org/D5871

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