Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tools/utils.py

Issue 10117031: Move 'revision' file creation from upload_sdk into create_sdk (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/upload_sdk.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/utils.py
===================================================================
--- tools/utils.py (revision 6711)
+++ tools/utils.py (working copy)
@@ -161,6 +161,15 @@
def GetBaseDir():
return BASE_DIR
+def GetSVNRevision():
+ p = subprocess.Popen(['svn', 'info'], stdout = subprocess.PIPE,
+ stderr = subprocess.STDOUT, shell=IsWindows())
+ output, not_used = p.communicate()
+ for line in output.split('\n'):
+ if 'Revision' in line:
+ return (line.strip().split())[1]
+ return None
+
def RewritePathSeparator(path, workspace):
# Paths in test files are always specified using '/'
# as the path separator. Replace with the actual
« no previous file with comments | « tools/upload_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698