aboutsummaryrefslogtreecommitdiff
path: root/utils/git
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
commitf6893dd44daff07245d59d21968f065b6247a9b2 (patch)
treeaa272f97345cde4be77d136d38574e5e502a78b6 /utils/git
parenta454ffd02a7ce2f7c8ffebaad1055bf09637d21b (diff)
[utils] Update find-rev utility to take a branch argument (name of the git-svn
branch). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/git')
-rwxr-xr-xutils/git/find-rev8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/git/find-rev b/utils/git/find-rev
index a6161db189..059ca0b78d 100755
--- a/utils/git/find-rev
+++ b/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