1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
naruse 2010-03-14 15:17:05 +00:00
parent 760db25b55
commit 4bbc67e4cf
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
Mon Mar 15 00:11:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
* 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@fsij.org>
* tool/transcode-tblgen.rb: consider valid_encoding for max_input.

View file

@ -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]