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

ruby-changes:33151

From: naruse <ko1@a...>
Date: Sat, 1 Mar 2014 20:07:18 +0900 (JST)
Subject: [ruby-changes:33151] naruse:r45230 (trunk): find_svn_log may return blank xml

naruse	2014-03-01 20:07:15 +0900 (Sat, 01 Mar 2014)

  New Revision: 45230

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

  Log:
    find_svn_log may return blank xml

  Modified files:
    trunk/tool/redmine-backporter.rb
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 45229)
+++ tool/redmine-backporter.rb	(revision 45230)
@@ -314,8 +314,7 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L314
     end
 
     log = find_svn_log("##@issue]")
-    if log
-      rev = log[/revision="(\d+)/, 1]
+    if log && /revision="(?<rev>\d+)/ =~ log
       str = log[/merge revision\(s\) ([^:]+)(?=:)/]
       str.insert(5, "d")
       str = "ruby_#{TARGET_VERSION.tr('.','_')} r#{rev} #{str}."

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

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