From 4bbc67e4cfa3296bfe30f42d5cdf05cf5490b280 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 14 Mar 2010 15:17:05 +0000 Subject: * 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/file2lastrev.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool/file2lastrev.rb') diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 66a13b457a..7eb918930f 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -56,7 +56,7 @@ class VCS 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 @@ class VCS 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] -- cgit v1.2.3