Index: scm.py |
diff --git a/scm.py b/scm.py |
index cbb44f26781a822bb6897d6754070b394d0c3ab2..6693fad7dfd528bf45e6edc57856f475828efde9 100644 |
--- a/scm.py |
+++ b/scm.py |
@@ -11,6 +11,7 @@ import shutil |
import subprocess |
import sys |
import tempfile |
+import time |
import xml.dom.minidom |
import gclient_utils |
@@ -381,7 +382,7 @@ class SVN(object): |
}[args[0]] |
compiled_pattern = re.compile(pattern) |
# Place an upper limit. |
- for _ in range(1, 10): |
+ for _ in range(10): |
previous_list_len = len(file_list) |
failure = [] |
@@ -405,6 +406,8 @@ class SVN(object): |
if args[0] == 'checkout': |
# An aborted checkout is now an update. |
args = ['update'] + args[1:] |
+ print "Sleeping 15 seconds and retrying...." |
+ time.sleep(15) |
continue |
# No progress was made or an unknown error we aren't sure, bail out. |
raise |