summaryrefslogtreecommitdiff
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-01 11:07:15 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-01 11:07:15 +0000
commit9db0dd7bb9562c2c21d651879bf5dc43e2cc5d2f (patch)
tree1581c6647728d0247616e7b8f2acfed17f4d98c6 /tool/redmine-backporter.rb
parent14ad015896fb58e7ce2ddb9d829789327ca159d7 (diff)
find_svn_log may return blank xml
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/redmine-backporter.rb')
-rwxr-xr-xtool/redmine-backporter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 8c124d4..e0e0678 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -314,8 +314,7 @@ eom
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}."