mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/file2lastrev.rb (get_revisions): fix to ignore end of line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8e79f34a2
commit
8c6a26ab8e
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 24 20:15:50 2008 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* tool/file2lastrev.rb (get_revisions): fix to ignore end of line.
|
||||
|
||||
Wed Dec 24 13:33:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconf
|
||||
|
|
|
@ -24,12 +24,12 @@ def get_revisions(path)
|
|||
`cd "#{SRCDIR}" && git svn info "#{path}"`
|
||||
end
|
||||
|
||||
if info =~ /^Revision: (\d+)$/
|
||||
if /^Revision: (\d+)/ =~ info
|
||||
last = $1
|
||||
else
|
||||
raise "last revision not found"
|
||||
end
|
||||
if info =~ /^Last Changed Rev: (\d+)$/
|
||||
if /^Last Changed Rev: (\d+)/ =~ info
|
||||
changed = $1
|
||||
else
|
||||
raise "changed revision not found"
|
||||
|
|
Loading…
Reference in a new issue