| Index: gclient_utils.py
|
| diff --git a/gclient_utils.py b/gclient_utils.py
|
| index 47ea50286bf9e2e66347395dd3595966075e0233..11bd9fc84951c7952e8d247f7098860949f9160e 100644
|
| --- a/gclient_utils.py
|
| +++ b/gclient_utils.py
|
| @@ -10,6 +10,7 @@ import os
|
| import pipes
|
| import Queue
|
| import re
|
| +import socket
|
| import stat
|
| import subprocess
|
| import sys
|
| @@ -25,6 +26,20 @@ RETRY_MAX = 3
|
| RETRY_INITIAL_SLEEP = 0.5
|
|
|
|
|
| +def enable_deletion_of_conflicting_checkouts():
|
| + """Determines whether to enable new checkout deletion behavior.
|
| +
|
| + Initially, enables the experimental functionality on a small set of
|
| + bots.
|
| + """
|
| + # TODO(borenet): Remove this hack as soon as we've verified that it
|
| + # doesn't cause the bots to break.
|
| + if not os.environ.get('CHROME_HEADLESS'):
|
| + return False
|
| + return socket.gethostname() in ('vm859-m1', 'BUILD1-M1',
|
| + 'vm630-m1.golo.chromium.org')
|
| +
|
| +
|
| class Error(Exception):
|
| """gclient exception class."""
|
| def __init__(self, msg, *args, **kwargs):
|
|
|