rust/hg-core/src/utils/files.rs
branchstable
changeset 51566 529a655874fb
parent 51120 532e74ad3ff6
--- 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.
 ///