1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

find_svn_log may return blank xml

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-03-01 11:07:15 +00:00
parent 14ad015896
commit 9db0dd7bb9

View file

@ -314,8 +314,7 @@ eom
end end
log = find_svn_log("##@issue]") log = find_svn_log("##@issue]")
if log if log && /revision="(?<rev>\d+)/ =~ log
rev = log[/revision="(\d+)/, 1]
str = log[/merge revision\(s\) ([^:]+)(?=:)/] str = log[/merge revision\(s\) ([^:]+)(?=:)/]
str.insert(5, "d") str.insert(5, "d")
str = "ruby_#{TARGET_VERSION.tr('.','_')} r#{rev} #{str}." str = "ruby_#{TARGET_VERSION.tr('.','_')} r#{rev} #{str}."