Commit 6f3c2c67 authored by mattm@chromium.org's avatar mattm@chromium.org

Allow specifying multiple bots with git-try.

BUG=none
TEST=git-try -b linux -b linux_view

Review URL: http://codereview.chromium.org/278015

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@29171 0039d316-1c4b-4281-b951-d872f2087c98
parent f3c92808
......@@ -166,7 +166,7 @@ if __name__ == '__main__':
parser = optparse.OptionParser(
usage='git try [options] [branch]',
description='Upload the current diff of branch...HEAD to the try server.')
parser.add_option("-b", "--bot",
parser.add_option("-b", "--bot", action="append",
help="Force the use of a specific build slave (eg mac, "
"win, or linux)")
parser.add_option("-c", "--clobber", action="store_true",
......@@ -246,8 +246,8 @@ if __name__ == '__main__':
'svn://svn.chromium.org/chrome-try/try',
])
if options.bot:
args.extend(['--bot', options.bot])
for bot in options.bot:
args.extend(['--bot', bot])
if options.clobber:
args.append('--clobber')
if options.revision:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment