diff -r 95c083d21ac6 -r 529a655874fb rust/hg-core/src/utils/files.rs --- a/rust/hg-core/src/utils/files.rs Fri Apr 12 13:48:38 2024 +0100 +++ b/rust/hg-core/src/utils/files.rs Fri Apr 12 14:09:55 2024 +0100 @@ -120,6 +120,10 @@ dirs } +pub fn dir_ancestors(path: &HgPath) -> Ancestors { + Ancestors { next: Some(path) } +} + /// Returns an iterator yielding ancestor directories of the given repository /// path. ///