D11050: run-tests: drop the `rhg` flag for `hghave.py` if unset
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Jul 10 00:38:38 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This seems cleaner.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11050
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -3197,6 +3197,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:
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list