Browse files

nacl_deps_bump: Add some help text

  • Loading branch information...
Mark Seaborn
Mark Seaborn committed Sep 27, 2012
1 parent fb88cd4 commit 26c15a0d411ba240356db581a3840c05e22e916c
Showing with 10 additions and 4 deletions.
  1. +10 −4
@@ -3,6 +3,14 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+This tool helps with updating nacl_revision in Chromium's DEPS file to
+the latest revision of NaCl. It creates a Rietveld code review for
+the update and kicks off a try job, using relevant trybots.
+This tool should be run from a Git checkout of Chromium.
import re
import optparse
import os
@@ -14,9 +22,6 @@
# apt-get install python-svn
import pysvn
-# This script creates a code review for an update of Chromium's DEPS
-# file to the latest revision of NaCl, and kicks off a try job.
def ReadFile(filename):
fh = open(filename, "r")
@@ -105,7 +110,7 @@ def GetLog(rev1, rev2):
def Main(args):
- parser = optparse.OptionParser()
+ parser = optparse.OptionParser('%prog [options]\n\n' + __doc__.strip())
parser.add_option('-r', '--revision', default=None, type='int',
help='NaCl SVN revision to use (default is HEAD)')
parser.add_option('-n', '--no-commit', action='store_true', default=False,
@@ -184,6 +189,7 @@ def Main(args):
], env=environ)
if options.no_try:
+ # This is on a single line to make it easier to copy and paste.
bots = 'linux_rel,mac_rel,win_rel,linux_chromeos,cros_daisy,linux_rel_naclmore,mac_rel_naclmore,win_rel_naclmore'
subprocess.check_call(['git', 'try', '-b', bots])

0 comments on commit 26c15a0

Please sign in to comment.