gracinet created this revision. Herald added subscribers: mercurial-devel, kevincox, durin42. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY In the previous wording, rustfmt wanted to cut at the == which is not very readable in my taste. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D5414 AFFECTED FILES rust/hg-core/src/ancestors.rs CHANGE DETAILS diff --git a/rust/hg-core/src/ancestors.rs b/rust/hg-core/src/ancestors.rs --- a/rust/hg-core/src/ancestors.rs +++ b/rust/hg-core/src/ancestors.rs @@ -101,9 +101,9 @@ /// /// - there's no filtering of invalid parent revisions. Actually, it should be /// consistent and more efficient to filter them from the end caller. -/// - we don't have the optimization for adjacent revs -/// (case where p1 == rev-1), because it amounts to update the first element -/// of the heap without sifting, which Rust's BinaryHeap doesn't let us do. +/// - we don't have the optimization for adjacent revisions (i.e., the case +/// where `p1 == rev - 1`), because it amounts to update the first element of +/// the heap without sifting, which Rust's BinaryHeap doesn't let us do. /// - we save a few pushes by comparing with `stoprev` before pushing impl<G: Graph> Iterator for AncestorsIterator<G> { type Item = Result<Revision, GraphError>; To: gracinet, #hg-reviewers Cc: durin42, kevincox, mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel