tests/run-tests.py
changeset 46724 78e6700ab009
parent 46723 a6553ba1c598
child 46754 9ba00a9dc6ea
equal deleted inserted replaced
46723:a6553ba1c598 46724:78e6700ab009
  3132             self._hgcommand = os.path.basename(self.options.with_chg)
  3132             self._hgcommand = os.path.basename(self.options.with_chg)
  3133 
  3133 
  3134         # configure fallback and replace "hg" command by "rhg"
  3134         # configure fallback and replace "hg" command by "rhg"
  3135         rhgbindir = self._bindir
  3135         rhgbindir = self._bindir
  3136         if self.options.rhg or self.options.with_rhg:
  3136         if self.options.rhg or self.options.with_rhg:
       
  3137             # Affects hghave.py
       
  3138             osenvironb[b'RHG_INSTALLED_AS_HG'] = b'1'
  3137             # Affects configuration. Alternatives would be setting configuration through
  3139             # Affects configuration. Alternatives would be setting configuration through
  3138             # `$HGRCPATH` but some tests override that, or changing `_hgcommand` to include
  3140             # `$HGRCPATH` but some tests override that, or changing `_hgcommand` to include
  3139             # `--config` but that disrupts tests that print command lines and check expected
  3141             # `--config` but that disrupts tests that print command lines and check expected
  3140             # output.
  3142             # output.
  3141             osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'
  3143             osenvironb[b'RHG_ON_UNSUPPORTED'] = b'fallback'