diff rust/rhg/src/main.rs @ 48174:9ecf802b06e0

rhg: refactor function to relativize paths in utils Commands like `files`, `status` supports printing relative paths. Hence we need to re-use this code in other places too. So let's take this out from `rhg files` into a utility function. Next patch will make `rhg status` use it. Differential Revision: https://phab.mercurial-scm.org/D11613
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 05 Oct 2021 18:02:22 +0530
parents ba773bd99203
children 5b9865032533
line wrap: on
line diff
--- a/rust/rhg/src/main.rs	Wed Oct 06 13:32:07 2021 +0530
+++ b/rust/rhg/src/main.rs	Tue Oct 05 18:02:22 2021 +0530
@@ -17,6 +17,9 @@
 mod blackbox;
 mod error;
 mod ui;
+pub mod utils {
+    pub mod path_utils;
+}
 use error::CommandError;
 
 fn main_with_result(