run-tests: drop the `rhg` flag for `hghave.py` if unset
This seems cleaner.
Differential Revision: https://phab.mercurial-scm.org/D11050
--- a/tests/run-tests.py Fri Jul 09 20:03:46 2021 +0200
+++ b/tests/run-tests.py Sat Jul 10 01:57:35 2021 +0200
@@ -3185,6 +3185,9 @@
# output.
osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'
osenvironb[b'RHG_FALLBACK_EXECUTABLE'] = real_hg
+ else:
+ # drop flag for hghave
+ osenvironb.pop(b'RHG_INSTALLED_AS_HG', None)
if self.options.rhg:
self._hgcommand = b'rhg'
elif self.options.with_rhg: