Show More
@@ -191,7 +191,7 b' def has_bzr():' | |||||
191 |
|
191 | |||
192 | @check("chg", "running with chg") |
|
192 | @check("chg", "running with chg") | |
193 | def has_chg(): |
|
193 | def has_chg(): | |
194 | return 'CHGHG' in os.environ |
|
194 | return 'CHG_INSTALLED_AS_HG' in os.environ | |
195 |
|
195 | |||
196 |
|
196 | |||
197 | @check("rhg", "running with rhg as 'hg'") |
|
197 | @check("rhg", "running with rhg as 'hg'") |
@@ -3165,9 +3165,11 b' class TestRunner(object):' | |||||
3165 | # set CHGHG, then replace "hg" command by "chg" |
|
3165 | # set CHGHG, then replace "hg" command by "chg" | |
3166 | chgbindir = self._bindir |
|
3166 | chgbindir = self._bindir | |
3167 | if self.options.chg or self.options.with_chg: |
|
3167 | if self.options.chg or self.options.with_chg: | |
|
3168 | osenvironb[b'CHG_INSTALLED_AS_HG'] = b'1' | |||
3168 | osenvironb[b'CHGHG'] = real_hg |
|
3169 | osenvironb[b'CHGHG'] = real_hg | |
3169 | else: |
|
3170 | else: | |
3170 |
|
|
3171 | # drop flag for hghave | |
|
3172 | osenvironb.pop(b'CHG_INSTALLED_AS_HG', None) | |||
3171 | if self.options.chg: |
|
3173 | if self.options.chg: | |
3172 | self._hgcommand = b'chg' |
|
3174 | self._hgcommand = b'chg' | |
3173 | elif self.options.with_chg: |
|
3175 | elif self.options.with_chg: |
General Comments 0
You need to be logged in to leave comments.
Login now