Chromium Code Reviews| Index: scm.py |
| diff --git a/scm.py b/scm.py |
| index 00364cae4c82f2bf181db2f5ffca83626857a518..ac674d695a88e50e53e26730e37d6622ad71d4f3 100644 |
| --- a/scm.py |
| +++ b/scm.py |
| @@ -351,7 +351,9 @@ class SVN(object): |
| compiled_pattern = re.compile(pattern) |
| # Place an upper limit. |
| backoff_time = 5 |
| - for _ in range(10): |
| + i = 0 |
|
jochen (gone - plz use gerrit)
2010/10/26 09:29:03
maybe use a more descriptive variable name, and si
|
| + while True: |
| + i += 1 |
| previous_list_len = len(file_list) |
| failure = [] |
| @@ -404,6 +406,8 @@ class SVN(object): |
| if len(file_list) == previous_list_len and not IsKnownFailure(): |
| # No known svn error was found and no progress, bail out. |
| raise |
| + if i == 10: |
| + raise |
| print "Sleeping %.1f seconds and retrying...." % backoff_time |
| time.sleep(backoff_time) |
| backoff_time *= 1.3 |