Mercurial > hg
diff rust/hg-core/src/utils/files.rs @ 43633:0b7733719d21
utils: move finddirs() to pathutil
This is a follow-up to c21aca51b392 (utils: move the `dirs` definition
in pathutil (API), 2019-11-06). finddirs() is closely related to dirs
and used by it.
Differential Revision: https://phab.mercurial-scm.org/D7388
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Nov 2019 08:03:26 -0800 |
parents | 99394e6c5d12 |
children | ee3872c14ab3 |
line wrap: on
line diff
--- a/rust/hg-core/src/utils/files.rs Wed Nov 13 21:52:25 2019 -0500 +++ b/rust/hg-core/src/utils/files.rs Thu Nov 14 08:03:26 2019 -0800 @@ -119,7 +119,7 @@ #[test] fn find_dirs_empty() { - // looks weird, but mercurial.util.finddirs(b"") yields b"" + // looks weird, but mercurial.pathutil.finddirs(b"") yields b"" let mut dirs = super::find_dirs(HgPath::new(b"")); assert_eq!(dirs.next(), Some(HgPath::new(b""))); assert_eq!(dirs.next(), None);