Permalink
Browse files

Add "-r" option for bumping to a specific NaCl SVN revision

Based on a patch by Stanislav Vorobyev (vissi@google.com)
  • Loading branch information...
1 parent d4717d2 commit 2bcadd243194a703bae180b000360f005c467682 @mseaborn committed Jun 4, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 nacl_deps_bump.py
View
@@ -105,6 +105,8 @@ def GetLog(rev1, rev2):
def Main():
parser = optparse.OptionParser()
+ parser.add_option('-r', '--revision', default=None, type='int',
+ help='NaCl SVN revision to use (default is HEAD)')
parser.add_option('-t', '--toolchain', action='store_true', default=False,
help='Update NaCl toolchain revisions too')
parser.add_option('-n', '--no-commit', action='store_true', default=False,
@@ -129,7 +131,9 @@ def Main():
if len(changes) != 0:
raise AssertionError('You have uncommitted changes:\n%s' % changes)
- svn_rev = GetNaClRev()
+ svn_rev = options.revision
+ if svn_rev is None:
+ svn_rev = GetNaClRev()
subprocess.check_call(['git', 'fetch'])
branch_name = 'nacl-deps-r%s' % svn_rev

0 comments on commit 2bcadd2

Please sign in to comment.