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

Unified Diff: dart/editor/build/promote.py

Issue 11108021: Merge revision 13627 to trunk. (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 2 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 | « dart/editor/build/build.py ('k') | dart/tools/VERSION » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/editor/build/promote.py
===================================================================
--- dart/editor/build/promote.py (revision 13623)
+++ dart/editor/build/promote.py (working copy)
@@ -15,6 +15,7 @@
from os.path import join
CONTINUOUS = 'gs://dart-editor-archive-continuous'
+TRUNK = 'gs://dart-editor-archive-trunk'
TESTING = 'gs://dart-editor-archive-testing'
INTEGRATION = 'gs://dart-editor-archive-integration'
RELEASE = 'gs://dart-editor-archive-release'
@@ -54,6 +55,7 @@
result.set_default('keepcount', 1000)
result.set_default('dryrun', False)
result.set_default('continuous', False)
+ result.set_default('trunk', False)
result.set_default('integration', False)
result.set_default('testing', False)
group = optparse.OptionGroup(result, 'Cleanup',
@@ -72,6 +74,9 @@
group.add_option('--continuous',
help='Promote from continuous',
action='store_true')
+ group.add_option('--trunk',
+ help='Promote from trunk',
+ action='store_true')
group.add_option('--integration',
help='Promote from integration',
action='store_true')
@@ -112,8 +117,9 @@
print 'You must specify a --revision to specify which revision to promote'
parser.print_help()
sys.exit(3)
- if not (options.continuous or options.integration or options.testing):
- print 'You must specify one of --continuous or --integration or --testing'
+ if not (options.continuous or options.integration or
+ options.testing or options.trunk):
+ print 'You must specify --continuous, --integration, --testing, or --trunk'
parser.print_help()
sys.exit(4)
if options.continuous and options.integration:
@@ -146,6 +152,9 @@
elif options.continuous:
bucket_from = CONTINUOUS
bucket_to = INTEGRATION
+ elif options.trunk:
+ bucket_from = TRUNK
+ bucket_to = INTEGRATION
elif options.integration:
bucket_from = INTEGRATION
bucket_to = RELEASE
« no previous file with comments | « dart/editor/build/build.py ('k') | dart/tools/VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698