aboutsummaryrefslogtreecommitdiffstats
path: root/tool/redmine-backporter.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-27 07:34:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-27 07:34:32 +0000
commitb47cc629bb3a9f6dd9708645943d35a21a313110 (patch)
tree754fe662d8e70e649655860387b9dc06a0373177 /tool/redmine-backporter.rb
parent8e84af26579bdb65ae3635b2c9fee286821db67b (diff)
downloadruby-b47cc629bb3a9f6dd9708645943d35a21a313110.tar.gz
* tool/redmine-backporter.rb (rel): check the exception and show right
message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/redmine-backporter.rb')
-rwxr-xr-xtool/redmine-backporter.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb
index 1ac51b0dba..a9007e1a5e 100755
--- a/tool/redmine-backporter.rb
+++ b/tool/redmine-backporter.rb
@@ -419,7 +419,11 @@ eom
begin
res.value
rescue
- $stderr.puts "deployed redmine doesn't have https://github.com/ruby/bugs.ruby-lang.org/commit/01fbba60d68cb916ddbccc8a8710e68c5217171d\nask naruse or hsbt"
+ if $!.respond_to?(:response) && $!.response.is_a?(Net::HTTPConflict)
+ $stderr.puts "the revision has already related to the ticket"
+ else
+ $stderr.puts "deployed redmine doesn't have https://github.com/ruby/bugs.ruby-lang.org/commit/01fbba60d68cb916ddbccc8a8710e68c5217171d\nask naruse or hsbt"
+ end
next
end
puts res.body