Skip to content

Commit

Permalink
[CI] Fix "Test w/ hg trunk" action
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed May 8, 2019
1 parent b49599e commit 9836db2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CI/decision.py
Expand Up @@ -8,7 +8,7 @@
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(BASE_DIR, '..'))

from distutils.version import LooseVersion
from distutils.version import StrictVersion
from itertools import chain

import osx # noqa: F401
Expand Down Expand Up @@ -68,8 +68,12 @@ def __init__(self, **kwargs):
if hg:
command.extend(Hg.install('{}.{}'.format(task_env, hg)))
command.append('hg --version')
if LooseVersion(hg) < '3.6':
kwargs.setdefault('env', {})['NO_CLONEBUNDLES'] = '1'
try:
if StrictVersion(hg) < '3.6':
kwargs.setdefault('env', {})['NO_CLONEBUNDLES'] = '1'
except ValueError:
# `hg` is a sha1 for trunk, which means it's >= 3.6
pass
if git:
command.extend(Git.install('{}.{}'.format(task_env, git)))
command.append('git --version')
Expand Down

0 comments on commit 9836db2

Please sign in to comment.