| Index: tools/utils.py
|
| diff --git a/tools/utils.py b/tools/utils.py
|
| index 1c460fcf24dba3c5601143242b165993c2b51732..cda1f94f0aadea56a5cfeb86de2f83588880a854 100644
|
| --- a/tools/utils.py
|
| +++ b/tools/utils.py
|
| @@ -339,6 +339,16 @@ def GetSVNRevision():
|
| if revision:
|
| return revision
|
|
|
| + # When building from tarball use tools/SVN_REVISION
|
| + svn_revision_file = os.path.join(DART_DIR, 'tools', 'SVN_REVISION')
|
| + try:
|
| + fd = open(svn_revision_file)
|
| + content = fd.read()
|
| + fd.close()
|
| + return content
|
| + except:
|
| + pass
|
| +
|
| # Only fail on the buildbot in case of a SVN client version mismatch.
|
| user = GetUserName()
|
| if user != 'chrome-bot':
|
|
|