[前][次][番号順一覧][スレッド一覧]

ruby-changes:9428

From: ko1 <ko1@a...>
Date: Wed, 24 Dec 2008 20:19:46 +0900 (JST)
Subject: [ruby-changes:9428] Ruby:r20966 (trunk): * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.

ko1	2008-12-24 20:19:32 +0900 (Wed, 24 Dec 2008)

  New Revision: 20966

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20966

  Log:
    * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.

  Modified files:
    trunk/ChangeLog
    trunk/tool/file2lastrev.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20965)
+++ ChangeLog	(revision 20966)
@@ -1,3 +1,7 @@
+Wed Dec 24 20:15:50 2008  Koichi Sasada  <ko1@a...>
+
+	* tool/file2lastrev.rb (get_revisions): fix to ignore end of line.
+
 Wed Dec 24 13:33:38 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconf
Index: tool/file2lastrev.rb
===================================================================
--- tool/file2lastrev.rb	(revision 20965)
+++ tool/file2lastrev.rb	(revision 20966)
@@ -24,12 +24,12 @@
     `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"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]