From patchwork Tue Mar 9 09:42:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10137: rhg: Fall back to Python if ui.relative-paths=no is configured From: phabricator X-Patchwork-Id: 48449 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Tue, 9 Mar 2021 09:42:34 +0000 SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10137 AFFECTED FILES rust/rhg/src/commands/files.rs CHANGE DETAILS To: SimonSapin, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/rust/rhg/src/commands/files.rs b/rust/rhg/src/commands/files.rs --- a/rust/rhg/src/commands/files.rs +++ b/rust/rhg/src/commands/files.rs @@ -27,6 +27,11 @@ } pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { + let relative = invocation.config.get(b"ui", b"relative-paths"); + if relative == Some(b"no") { + return Err(CommandError::unsupported("ui.relative-paths = no")); + } + let rev = invocation.subcommand_args.value_of("rev"); let repo = invocation.repo?;