sapling/eden/testlib/errors.py
Saul Gutierrez 8750906990 testlib: make a more efficient use of revsets in Commit.ancestor
Summary: This makes the `Commit.ancestor` method use the `ancestors` revset instead of using the `parent` ancestor multiple times, making it more efficient.

Reviewed By: jordanwebster

Differential Revision: D37135010

fbshipit-source-id: f3cb3628fc24f8da473d6059d5aed837316bc7ad
2022-06-16 02:34:54 -07:00

19 lines
406 B
Python

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# pyre-strict
class MissingCommitError(LookupError):
"""Raised when failing to find some commit"""
pass
class AmbiguousCommitError(LookupError):
"""Raised when failing to identify a commit due to ambiguity"""
pass