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

Unified Diff: tools/utils.py

Issue 884523003: Add support for ignoring the svn revision when getting the version, use this for gn build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/make_version.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
diff --git a/tools/utils.py b/tools/utils.py
index 2e9272320669f876020f835389e526954241ef2a..55a54bc0eb51894d26f8a8331e0fc94a6f56bf25 100644
--- a/tools/utils.py
+++ b/tools/utils.py
@@ -278,13 +278,13 @@ def GetShortVersion():
version.major, version.minor, version.patch, version.prerelease,
version.prerelease_patch))
-def GetSemanticSDKVersion():
+def GetSemanticSDKVersion(ignore_svn_revision=False):
version = ReadVersionFile()
if not version:
return None
if version.channel == 'be':
- postfix = '-edge.%s' % GetSVNRevision()
+ postfix = '-edge' if ignore_svn_revision else '-edge.%s' % GetSVNRevision()
elif version.channel == 'dev':
postfix = '-dev.%s.%s' % (version.prerelease, version.prerelease_patch)
else:
« no previous file with comments | « tools/make_version.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698