summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:19:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:19:32 +0000
commit8c6a26ab8e1d9ba48f904c165a175d55732a5240 (patch)
tree94c244c30d8b6ef3961a70d9b86748bbad0e0faa /tool
parentb8e79f34a29950102bf0db20b025cd4916da2787 (diff)
* 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
Diffstat (limited to 'tool')
-rw-r--r--tool/file2lastrev.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 73cc9997a99..01ac1bbceda 100644
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -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"