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) |
ricow1
2014/02/06 13:25:21
I am a sucker for with :-)
try:
with open(svn_re
Søren Gjesse
2014/02/07 09:52:43
Done.
|
+ 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': |