Submitter | phabricator |
---|---|
Date | Jan. 3, 2019, 10:53 p.m. |
Message ID | <813a7dd202d5bcdd2a66ce4255bb9509@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/37444/ |
State | Not Applicable |
Headers | show |
Comments
Patch
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 @@ -321,7 +321,7 @@ // TODO heuristics for with_capacity()? let mut missing: Vec<Revision> = Vec::new(); - for curr in (0..=start).map(|i| start - i) { + for curr in (0..=start).rev() { if revs_visit.is_empty() { break; }