[llvm-commits] [llvm] r172740 - /llvm/trunk/utils/git/find-rev

Daniel Dunbar daniel at zuster.org
Thu Jan 17 10:57:21 PST 2013


Author: ddunbar
Date: Thu Jan 17 12:57:21 2013
New Revision: 172740

URL: http://llvm.org/viewvc/llvm-project?rev=172740&view=rev
Log:
[utils] Update find-rev utility to take a branch argument (name of the git-svn
branch).

Modified:
    llvm/trunk/utils/git/find-rev

Modified: llvm/trunk/utils/git/find-rev
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/git/find-rev?rev=172740&r1=172739&r2=172740&view=diff
==============================================================================
--- llvm/trunk/utils/git/find-rev (original)
+++ llvm/trunk/utils/git/find-rev Thu Jan 17 12:57:21 2013
@@ -5,9 +5,9 @@
 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 @@
         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





More information about the llvm-commits mailing list