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

Unified Diff: trychange.py

Issue 200078: Adding a project selection option to gcl.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 11 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trychange.py
===================================================================
--- trychange.py (revision 25878)
+++ trychange.py (working copy)
@@ -91,6 +91,7 @@
settings['http_port'] = gcl.GetCodeReviewSetting('TRYSERVER_HTTP_PORT')
settings['http_host'] = gcl.GetCodeReviewSetting('TRYSERVER_HTTP_HOST')
settings['svn_repo'] = gcl.GetCodeReviewSetting('TRYSERVER_SVN_URL')
+ settings['default_project'] = gcl.GetCodeReviewSetting('TRYSERVER_PROJECT')
# Use http is the http_host name resolve, fallback to svn otherwise.
if (settings['http_port'] and settings['http_host'] and
_SafeResolve(settings['http_host'])):
@@ -255,6 +256,8 @@
values['patchset'] = options.patchset
if options.target:
values['target'] = options.target
+ if options.project:
+ values['project'] = options.project
return values
@@ -420,7 +423,7 @@
group.add_option("-b", "--bot", action="append",
help="Only use specifics build slaves, ex: '--bot win' to "
"run the try job only on the 'win' slave; see the try "
- "server watefall for the slave's name")
+ "server waterfall for the slave's name")
group.add_option("-r", "--revision",
help="Revision to use for the try job; default: the "
"revision will be determined by the try server; see "
@@ -432,6 +435,10 @@
# "'release'"
group.add_option("--target", help=optparse.SUPPRESS_HELP)
+ # TODO(bradnelson): help="Override which project to use"
+ group.add_option("--project", help=optparse.SUPPRESS_HELP,
+ default=default_settings['default_project'])
+
# Override the list of tests to run, use multiple times to list many tests
# (or comma separated)
group.add_option("-t", "--tests", action="append",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698