diff --git a/news/hgsplit.rst b/news/hgsplit.rst new file mode 100644 index 000000000..7b369334d --- /dev/null +++ b/news/hgsplit.rst @@ -0,0 +1,13 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* The ``hg split`` command will now predict as unthreadable. + +**Security:** None diff --git a/xonsh/commands_cache.py b/xonsh/commands_cache.py index 0313d1ef2..29ae58c02 100644 --- a/xonsh/commands_cache.py +++ b/xonsh/commands_cache.py @@ -371,9 +371,13 @@ def HG_PREDICTOR_PARSER(): def predict_hg(args): """Predict if mercurial is about to be run in interactive mode. If it is interactive, predict False. If it isn't, predict True. + Also predict False for certain commands, such as split. """ ns, _ = HG_PREDICTOR_PARSER.parse_known_args(args) - return not ns.interactive + if hg.command == "split": + return False + else: + return not ns.interactive def default_threadable_predictors():