From 4c82c953adf6fc11a9d77e79a05dfffe37cbc363 Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 25 Dec 2008 09:55:26 +0000 Subject: merges r20966 from trunk into ruby_1_9_1. * tool/file2lastrev.rb (get_revisions): fix to ignore end of line. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/file2lastrev.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 73cc9997a..01ac1bbce 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" -- cgit