mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
unthread hg split
This commit is contained in:
parent
79daa5abc6
commit
1ee2dc96da
2 changed files with 18 additions and 1 deletions
13
news/hgsplit.rst
Normal file
13
news/hgsplit.rst
Normal file
|
@ -0,0 +1,13 @@
|
|||
**Added:** None
|
||||
|
||||
**Changed:** None
|
||||
|
||||
**Deprecated:** None
|
||||
|
||||
**Removed:** None
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* The ``hg split`` command will now predict as unthreadable.
|
||||
|
||||
**Security:** None
|
|
@ -371,8 +371,12 @@ 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)
|
||||
if hg.command == "split":
|
||||
return False
|
||||
else:
|
||||
return not ns.interactive
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue