Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/lib.rs @ 42960:7a01778bc7b7
rust-hgpath: replace all paths and filenames with HgPath/HgPathBuf
Differential Revision: https://phab.mercurial-scm.org/D6774
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Sun, 01 Sep 2019 20:53:14 +0200 |
parents | 7083ac37314f |
children | 99394e6c5d12 |
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs Sun Sep 01 20:53:14 2019 +0200 +++ b/rust/hg-core/src/lib.rs Sun Sep 01 20:53:14 2019 +0200 @@ -18,6 +18,7 @@ mod filepatterns; pub mod utils; +use crate::utils::hg_path::HgPathBuf; pub use filepatterns::{ build_single_regex, read_pattern_file, PatternSyntax, PatternTuple, }; @@ -96,7 +97,7 @@ } #[derive(Debug, PartialEq)] pub enum DirstateMapError { - PathNotFound(Vec<u8>), + PathNotFound(HgPathBuf), EmptyPath, }