mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 09:48:05 +03:00
mononoke: add docstrings for is_ancestor in reachabilityindex
Summary: This is very important. Reviewed By: StanislavGlebik Differential Revision: D17629412 fbshipit-source-id: 36d056b28c7bde324d478f94bac228bd1aff5238
This commit is contained in:
parent
ba4247c5b9
commit
4b9e787f12
@ -667,6 +667,8 @@ impl LeastCommonAncestorsHint for SkiplistIndex {
|
|||||||
.boxify()
|
.boxify()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Check if `ancestor` changeset is an ancestor of `descendant` changeset
|
||||||
|
/// Note that a changeset IS NOT its own ancestor
|
||||||
fn is_ancestor(
|
fn is_ancestor(
|
||||||
&self,
|
&self,
|
||||||
ctx: CoreContext,
|
ctx: CoreContext,
|
||||||
|
@ -144,6 +144,8 @@ pub trait LeastCommonAncestorsHint: Send + Sync {
|
|||||||
gen: Generation,
|
gen: Generation,
|
||||||
) -> BoxFuture<NodeFrontier, Error>;
|
) -> BoxFuture<NodeFrontier, Error>;
|
||||||
|
|
||||||
|
/// Check if `ancestor` changeset is an ancestor of `descendant` changeset
|
||||||
|
/// Note that a changeset IS NOT its own ancestor
|
||||||
fn is_ancestor(
|
fn is_ancestor(
|
||||||
&self,
|
&self,
|
||||||
ctx: CoreContext,
|
ctx: CoreContext,
|
||||||
|
Loading…
Reference in New Issue
Block a user