mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
8750906990
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
19 lines
406 B
Python
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
|