Skip to content
Browse files

find_svn_log may return blank xml

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 14ad015 commit 9db0dd7bb9562c2c21d651879bf5dc43e2cc5d2f @nurse nurse committed Mar 1, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 tool/redmine-backporter.rb
View
3 tool/redmine-backporter.rb
@@ -314,8 +314,7 @@ def backport_command_string
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}."

0 comments on commit 9db0dd7

Please sign in to comment.
Something went wrong with that request. Please try again.