@@ -419,8 +419,13 @@ impl Dag {
419
419
420
420
/// Wrapper around DAG method.
421
421
#[ instrument]
422
- pub fn query_is_ancestor ( & self , lhs : NonZeroOid , rhs : NonZeroOid ) -> eden_dag:: Result < bool > {
423
- let result = self . run_blocking ( self . inner . is_ancestor ( lhs. into ( ) , rhs. into ( ) ) ) ?;
422
+ pub fn query_is_ancestor (
423
+ & self ,
424
+ ancestor : NonZeroOid ,
425
+ descendant : NonZeroOid ,
426
+ ) -> eden_dag:: Result < bool > {
427
+ let result =
428
+ self . run_blocking ( self . inner . is_ancestor ( ancestor. into ( ) , descendant. into ( ) ) ) ?;
424
429
Ok ( result)
425
430
}
426
431
@@ -630,15 +635,19 @@ impl Dag {
630
635
631
636
/// Wrapper around DAG method.
632
637
#[ instrument]
633
- pub fn query_only ( & self , from : CommitSet , to : CommitSet ) -> eden_dag:: Result < CommitSet > {
634
- let result = self . run_blocking ( self . inner . only ( from, to) ) ?;
638
+ pub fn query_only (
639
+ & self ,
640
+ reachable : CommitSet ,
641
+ unreachable : CommitSet ,
642
+ ) -> eden_dag:: Result < CommitSet > {
643
+ let result = self . run_blocking ( self . inner . only ( reachable, unreachable) ) ?;
635
644
Ok ( result)
636
645
}
637
646
638
647
/// Wrapper around DAG method.
639
648
#[ instrument]
640
- pub fn query_range ( & self , from : CommitSet , to : CommitSet ) -> eden_dag:: Result < CommitSet > {
641
- let result = self . run_blocking ( self . inner . range ( from , to ) ) ?;
649
+ pub fn query_range ( & self , roots : CommitSet , heads : CommitSet ) -> eden_dag:: Result < CommitSet > {
650
+ let result = self . run_blocking ( self . inner . range ( roots , heads ) ) ?;
642
651
Ok ( result)
643
652
}
644
653
0 commit comments