[Request] [++ ] D10906: rhg: fallback if tweakdefaults or statuscopies is enabled with status
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Jun 24 18:04:52 UTC 2021
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
`rhg status` is experimental right now and does not support all functionalities.
While the long term target is to implement them, for now we add a fallback to
have all tests pass with `rhg status` enabled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10906
AFFECTED FILES
rust/rhg/src/commands/status.rs
CHANGE DETAILS
diff --git a/rust/rhg/src/commands/status.rs b/rust/rhg/src/commands/status.rs
--- a/rust/rhg/src/commands/status.rs
+++ b/rust/rhg/src/commands/status.rs
@@ -141,6 +141,30 @@
));
}
+ // TODO: lift this limitation
+ match invocation.config.get_bool(b"ui", b"tweakdefaults") {
+ Ok(val) => {
+ if val {
+ return Err(CommandError::unsupported(
+ "ui.tweakdefaults is not yet supported with rhg status",
+ ));
+ }
+ }
+ Err(_) => {}
+ };
+
+ // TODO: lift this limitation
+ match invocation.config.get_bool(b"ui", b"statuscopies") {
+ Ok(val) => {
+ if val {
+ return Err(CommandError::unsupported(
+ "ui.statuscopies is not yet supported with rhg status",
+ ));
+ }
+ }
+ Err(_) => {}
+ };
+
let ui = invocation.ui;
let args = invocation.subcommand_args;
let display_states = if args.is_present("all") {
To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210624/f44dd0e9/attachment.html>
More information about the Mercurial-patches
mailing list