summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-01-17 18:57:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-01-17 18:57:21 +0000
commit8bbf26f59e2f22e8189cf7eed83f789c78f187d2 (patch)
treea66370871857a81e999ef6e8ba0f68dec06ccb78 /llvm/utils
parentaa7a3b3e75e806591f629a4a85155958235625ce (diff)
downloadbcm5719-llvm-8bbf26f59e2f22e8189cf7eed83f789c78f187d2.tar.gz
bcm5719-llvm-8bbf26f59e2f22e8189cf7eed83f789c78f187d2.zip
[utils] Update find-rev utility to take a branch argument (name of the git-svn
branch). llvm-svn: 172740
Diffstat (limited to 'llvm/utils')
-rwxr-xr-xllvm/utils/git/find-rev8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/git/find-rev b/llvm/utils/git/find-rev
index a6161db1898..059ca0b78de 100755
--- a/llvm/utils/git/find-rev
+++ b/llvm/utils/git/find-rev
@@ -5,9 +5,9 @@ import os, sys, subprocess
def main():
from optparse import OptionParser, OptionGroup
parser = OptionParser("usage: %prog [options] <repo> <revision>")
- parser.add_option("", "--dump-section-data", dest="dumpSectionData",
- help="Dump the contents of sections",
- action="store_true", default=False)
+ parser.add_option("", "--branch", dest="branch",
+ help="Ref for the branch to search [%default]",
+ action="store", default="git-svn")
(opts, args) = parser.parse_args()
if len(args) != 2:
@@ -21,7 +21,7 @@ def main():
parser.error("invalid revision argument (not an integer)")
os.chdir(repo)
- p = subprocess.Popen(['git', 'rev-list', 'git-svn', '--pretty'],
+ p = subprocess.Popen(['git', 'rev-list', opts.branch, '--pretty'],
stdout=subprocess.PIPE)
bestRev = bestCommit = None
OpenPOWER on IntegriCloud