rust/rhg/src/main.rs
changeset 47405 88119fffecc8
parent 47404 ebdef6283798
child 47406 3237ed4dcda4
--- a/rust/rhg/src/main.rs	Sun Apr 11 00:50:10 2021 +0530
+++ b/rust/rhg/src/main.rs	Mon May 24 16:27:54 2021 +0530
@@ -174,9 +174,8 @@
         } else {
             let local_config = {
                 if std::env::var_os("HGRCSKIPREPO").is_none() {
-                    let current_dir = hg::utils::current_dir();
-                    // TODO: handle errors from current_dir
-                    if let Ok(current_dir_path) = current_dir {
+                    // TODO: handle errors from find_repo_root
+                    if let Ok(current_dir_path) = Repo::find_repo_root() {
                         let config_files = vec![
                             ConfigSource::AbsPath(
                                 current_dir_path.join(".hg/hgrc"),