If the hg program is not found, then there used to be a Lua script
error. I fixed that in the earlier commit in this PR. But the fix
was incomplete, and the hg prompt still appended " ()" instead of
not appending anything (which is how the svn prompt behaves when
the svn program is not found).
Cmder's hg prompt didn't use async prompt filtering yet.
Cmder's svn prompt only used async prompt filtering if a special config
variable was set (the commit which contributed it seems to have
misunderstood the git config settings for the git async prompt).
This commit makes the following changes:
1. Adds async prompt filtering for hg.
2. Makes async prompt filtering for svn the default.
3. Removes the prompt_overrideSvnStatusOptIn variable.
4. Fixes a bug where any errors during `svn status` in the svn prompt
accidentally show up in the terminal.
5. Fixes a bug where any errors during `hg branch` in the hg prompt
turn into Lua errors.
6. Simplifies the code for colors in the hg and svn prompts.
7. Clean up the svn prompt code and make it consistent with the git
and hg prompt code.
- `getGitStatusSetting`: use local variables, improve regex pattern, use return status codes instead of echo strings
- `getSimpleGitBranch`: better error handling, use local variables
- Simplified conditional checks
* origin/cmder4win:
cleanup
cleanup
cleanup
not set
origin/fix_launcher_overwrite
cleanup
respect PATHEXT instead of hardcoding our own value
add missing qualified dir
cleanup
prevent warnings if the dir does not exist
enable `/d` flag in `excd` by default
fix conflict
add notes on what shim actually is
⬆️ Update dependencies (git-for-windows v2.47.0.windows.1, clink v1.7.3, clink-completions v0.6.0)
make library comments consistent and clean up code
Use single quotes inside double quotes
modify the header to remove outdated mention
add vendor/bin/create-cmdercfg.cmd