diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-14 15:17:05 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-14 15:17:05 +0000 |
commit | 4bbc67e4cfa3296bfe30f42d5cdf05cf5490b280 (patch) | |
tree | 19018757fb1e149ee8b8f8ad0acc7ec4cfa01ee4 /tool | |
parent | 760db25b55ac74c63b8349460c979ac5d9aaacff (diff) | |
download | ruby-4bbc67e4cfa3296bfe30f42d5cdf05cf5490b280.tar.gz |
* 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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/file2lastrev.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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] |