Mercurial > hg
diff tests/test-rhg.t @ 46748:bde90e9b4507
rhg: Remove `rhg.fallback-executable=hg` default configuration
When `rhg.on-unsupported` is configured to `fallback` and an unsupported
feature is encountered, the previous default was to look for an `hg`
executable in `$PATH`.
This default was fragile since it was easy to end up accidentally using
an older version of Mercurial installed system-wide,
when a local (perhaps patched) installation was intended.
Instead, it is now an error to have `rhg.on-unsupported=fallback`
without also configuring an explicit path or the fallback executable.
Differential Revision: https://phab.mercurial-scm.org/D10189
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 12 Mar 2021 21:44:07 +0100 |
parents | 12d59eec7f1d |
children | 84a93fa7ecfd |
line wrap: on
line diff
--- a/tests/test-rhg.t Tue Mar 09 09:17:24 2021 +0100 +++ b/tests/test-rhg.t Fri Mar 12 21:44:07 2021 +0100 @@ -150,6 +150,14 @@ $ rhg cat original original content + $ FALLBACK_EXE="$RHG_FALLBACK_EXECUTABLE" + $ unset RHG_FALLBACK_EXECUTABLE + $ rhg cat original + abort: 'rhg.on-unsupported=fallback' without 'rhg.fallback-executable' set. + [255] + $ RHG_FALLBACK_EXECUTABLE="$FALLBACK_EXE" + $ export RHG_FALLBACK_EXECUTABLE + $ rhg cat original --config rhg.fallback-executable=false [1]