diff rust/hg-core/src/lib.rs @ 41242:47881d2a9d99

rust: dagop.headrevs() Rust counterparts This introduces two Rust implementations for `mercurial.dagop.headrevs`. The algorithm is identical to the Python version. Depending on the caller, one or the other could be the most practical, or the most performant, by minimizing the amount of memory copy and allocations. Differential Revision: https://phab.mercurial-scm.org/D5580
author Georges Racinet on ishtar.racinet.fr <georges@racinet.fr>
date Mon, 14 Jan 2019 10:07:48 +0100
parents 168041fa6d5f
children 2f54f31c41aa
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs	Mon Jan 14 20:42:25 2019 +0100
+++ b/rust/hg-core/src/lib.rs	Mon Jan 14 10:07:48 2019 +0100
@@ -3,6 +3,7 @@
 // This software may be used and distributed according to the terms of the
 // GNU General Public License version 2 or any later version.
 mod ancestors;
+pub mod dagops;
 pub use ancestors::{AncestorsIterator, LazyAncestors, MissingAncestors};
 #[cfg(test)]
 pub mod testing;