Mercurial > hg
comparison tests/hghave.py @ 46724:78e6700ab009
tests: Add `rhg` and `no-rhg` for #require and #if in .t files
With this we can allow some small differences in expected output
between Rust-based and Python-based code paths.
Differential Revision: https://phab.mercurial-scm.org/D10096
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 03 Mar 2021 18:00:54 +0100 |
parents | ad107ed7a4aa |
children | 41d43d12c2c4 |
comparison
equal
deleted
inserted
replaced
46723:a6553ba1c598 | 46724:78e6700ab009 |
---|---|
184 | 184 |
185 | 185 |
186 @check("chg", "running with chg") | 186 @check("chg", "running with chg") |
187 def has_chg(): | 187 def has_chg(): |
188 return 'CHGHG' in os.environ | 188 return 'CHGHG' in os.environ |
189 | |
190 | |
191 @check("rhg", "running with rhg as 'hg'") | |
192 def has_rhg(): | |
193 return 'RHG_INSTALLED_AS_HG' in os.environ | |
189 | 194 |
190 | 195 |
191 @check("cvs", "cvs client/server") | 196 @check("cvs", "cvs client/server") |
192 def has_cvs(): | 197 def has_cvs(): |
193 re = br'Concurrent Versions System.*?server' | 198 re = br'Concurrent Versions System.*?server' |