ruby-changes:15041
From: naruse <ko1@a...>
Date: Mon, 15 Mar 2010 00:17:24 +0900 (JST)
Subject: [ruby-changes:15041] Ruby:r26917 (trunk): * tool/file2lastrev.rb (VCS::GIT_SVN#get_revisions) :
naruse 2010-03-15 00:17:05 +0900 (Mon, 15 Mar 2010) New Revision: 26917 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26917 Log: * tool/file2lastrev.rb (VCS::GIT_SVN#get_revisions) : use block argument 'path' to get the path given by super. * tool/file2lastrev.rb (VCS::GIT#get_revisions): use double quotes for Windows. patched by Vladimir Sizikov [ruby-core:28651] Modified files: trunk/ChangeLog trunk/tool/file2lastrev.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26916) +++ ChangeLog (revision 26917) @@ -1,3 +1,12 @@ +Mon Mar 15 00:11:23 2010 NARUSE, Yui <naruse@r...> + + * tool/file2lastrev.rb (VCS::GIT_SVN#get_revisions) : + use block argument 'path' to get the path given by super. + + * tool/file2lastrev.rb (VCS::GIT#get_revisions): + use double quotes for Windows. + patched by Vladimir Sizikov [ruby-core:28651] + Sun Mar 14 22:38:31 2010 Tanaka Akira <akr@f...> * tool/transcode-tblgen.rb: consider valid_encoding for max_input. Index: tool/file2lastrev.rb =================================================================== --- tool/file2lastrev.rb (revision 26916) +++ tool/file2lastrev.rb (revision 26917) @@ -56,7 +56,7 @@ register(".git/svn") def get_revisions(path) - super do + super do |path| info = `git svn info "#{path}"` [info[/^Revision: (\d+)/, 1], info[/^Last Changed Rev: (\d+)/, 1]] end @@ -67,7 +67,7 @@ register(".git") def get_revisions(path) - logcmd = %Q[git log -n1 --grep='^ *git-svn-id: .*@[0-9][0-9]* '] + logcmd = %Q[git log -n1 --grep="^ *git-svn-id: .*@[0-9][0-9]* "] idpat = /git-svn-id: .*?@(\d+) \S+\Z/ super do last = `#{logcmd}`[idpat, 1] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/