Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/commands/status.rs @ 48188:38deb65d4441
rhg: add ui.plain() and check it before showing relative paths in status
Adds a very basic replica of `ui.plain()`.
Differential Revision: https://phab.mercurial-scm.org/D10912
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 25 Jun 2021 15:00:08 +0530 |
parents | 707c58880cd0 |
children | 269ff8978086 |
line wrap: on
line diff
--- a/rust/rhg/src/commands/status.rs Tue Oct 05 18:10:04 2021 +0530 +++ b/rust/rhg/src/commands/status.rs Fri Jun 25 15:00:08 2021 +0530 @@ -267,7 +267,7 @@ relative = config .get_bool(b"commands", b"status.relative") .unwrap_or(relative); - if relative { + if relative && !ui.plain() { relativize_paths( repo, paths,