Show More
@@ -784,5 +784,4 b' mod tests {' | |||
|
784 | 784 | missing_ancestors.remove_ancestors_from(&mut revs).unwrap(); |
|
785 | 785 | assert!(!revs.contains(&problem_rev)); |
|
786 | 786 | } |
|
787 | ||
|
788 | 787 | } |
@@ -8,10 +8,10 b'' | |||
|
8 | 8 | //! Miscellaneous DAG operations |
|
9 | 9 | //! |
|
10 | 10 | //! # Terminology |
|
11 | //! - By *relative heads* of a collection of revision numbers (`Revision`), | |
|
12 |
//! |
|
|
13 | //! - Similarly *relative roots* of a collection of `Revision`, we mean | |
|
14 |
//! |
|
|
11 | //! - By *relative heads* of a collection of revision numbers (`Revision`), we | |
|
12 | //! mean those revisions that have no children among the collection. | |
|
13 | //! - Similarly *relative roots* of a collection of `Revision`, we mean those | |
|
14 | //! whose parents, if any, don't belong to the collection. | |
|
15 | 15 | use super::{Graph, GraphError, Revision, NULL_REVISION}; |
|
16 | 16 | use crate::ancestors::AncestorsIterator; |
|
17 | 17 | use std::collections::{BTreeSet, HashSet}; |
@@ -272,5 +272,4 b' mod tests {' | |||
|
272 | 272 | ); |
|
273 | 273 | Ok(()) |
|
274 | 274 | } |
|
275 | ||
|
276 | 275 | } |
@@ -316,5 +316,4 b' mod tests {' | |||
|
316 | 316 | }; |
|
317 | 317 | assert_eq!(expected, new); |
|
318 | 318 | } |
|
319 | ||
|
320 | 319 | } |
@@ -691,5 +691,4 b' mod tests {' | |||
|
691 | 691 | assert_eq!(sample, vec![0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13]); |
|
692 | 692 | Ok(()) |
|
693 | 693 | } |
|
694 | ||
|
695 | 694 | } |
@@ -38,7 +38,8 b' pub enum PatternSyntax {' | |||
|
38 | 38 | Regexp, |
|
39 | 39 | /// Glob that matches at the front of the path |
|
40 | 40 | RootGlob, |
|
41 |
/// Glob that matches at any suffix of the path (still anchored at |
|
|
41 | /// Glob that matches at any suffix of the path (still anchored at | |
|
42 | /// slashes) | |
|
42 | 43 | Glob, |
|
43 | 44 | Path, |
|
44 | 45 | RelPath, |
@@ -20,8 +20,7 b' pub mod files;' | |||
|
20 | 20 | /// assert_eq!( |
|
21 | 21 | /// line, |
|
22 | 22 | /// b"I love writing tests!".to_vec() |
|
23 | ///); | |
|
24 | /// | |
|
23 | /// ); | |
|
25 | 24 | /// ``` |
|
26 | 25 | pub fn replace_slice<T>(buf: &mut [T], from: &[T], to: &[T]) |
|
27 | 26 | where |
@@ -8,7 +8,8 b'' | |||
|
8 | 8 | |
|
9 | 9 | //! Bindings for the `hg::filepatterns` module provided by the |
|
10 | 10 | //! `hg-core` crate. From Python, this will be seen as `rustext.filepatterns` |
|
11 |
//! and can be used as replacement for the the pure `filepatterns` Python |
|
|
11 | //! and can be used as replacement for the the pure `filepatterns` Python | |
|
12 | //! module. | |
|
12 | 13 | //! |
|
13 | 14 | use crate::exceptions::{PatternError, PatternFileError}; |
|
14 | 15 | use cpython::{ |
General Comments 0
You need to be logged in to leave comments.
Login now