Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 47826:94158c541c74 stable
pyoxidized: add a `pyoxidizer` hghave keyword for line matching
Some output line can be affected by pyoxidizer, for example the source file path
are replaced by the module name. We introduce a new condition keyword to cope
with this.
Differential Revision: https://phab.mercurial-scm.org/D11283
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 17 Aug 2021 20:48:34 +0200 |
parents | a8e33ab50c4f |
children | 1ff06ceb070f |
line wrap: on
line diff
--- a/tests/hghave.py Tue Aug 17 14:38:25 2021 +0200 +++ b/tests/hghave.py Tue Aug 17 20:48:34 2021 +0200 @@ -199,6 +199,11 @@ return 'RHG_INSTALLED_AS_HG' in os.environ +@check("pyoxidizer", "running with pyoxidizer build as 'hg'") +def has_rhg(): + return 'PYOXIDIZED_INSTALLED_AS_HG' in os.environ + + @check("cvs", "cvs client/server") def has_cvs(): re = br'Concurrent Versions System.*?server'