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:
Kostia Balytskyi 2019-09-27 09:37:00 -07:00 committed by Facebook Github Bot
parent ba4247c5b9
commit 4b9e787f12
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -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,