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

Unified Diff: dartium_tools/update_version.py

Issue 239993009: Revert accidental dartium code push (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « dartium_tools/update_patched_files.py ('k') | dartium_tools/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dartium_tools/update_version.py
diff --git a/dartium_tools/update_version.py b/dartium_tools/update_version.py
deleted file mode 100755
index 020eea39b3ed948b1fbbbe476dc364de3c0ba985..0000000000000000000000000000000000000000
--- a/dartium_tools/update_version.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2012 Google Inc. All Rights Reserved.
-
-import subprocess
-import sys
-
-def FetchSVNRevision():
- try:
- proc = subprocess.Popen(['svn', 'info'],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE,
- cwd='src/dart',
- shell=(sys.platform=='win32'))
- except OSError:
- # command is apparently either not installed or not executable.
- return None
- if not proc:
- return None
-
- for line in proc.stdout:
- line = line.strip()
- if not line:
- continue
- key, val = line.split(': ', 1)
- if key == 'Revision':
- return val
-
- return None
-
-
-def main():
- revision = FetchSVNRevision()
- path = 'src/chrome/VERSION'
- text = file(path).readlines()
- text[2] = 'BUILD=d%s\n' % revision
- file(path, 'w').writelines(text)
-
-if __name__ == '__main__':
- main()
« no previous file with comments | « dartium_tools/update_patched_files.py ('k') | dartium_tools/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698