ruby-changes:44429
From: usa <ko1@a...>
Date: Thu, 27 Oct 2016 16:34:37 +0900 (JST)
Subject: [ruby-changes:44429] usa:r56502 (trunk): * tool/redmine-backporter.rb (rel): check the exception and show right
usa 2016-10-27 16:34:32 +0900 (Thu, 27 Oct 2016) New Revision: 56502 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56502 Log: * tool/redmine-backporter.rb (rel): check the exception and show right message. Modified files: trunk/ChangeLog trunk/tool/redmine-backporter.rb Index: tool/redmine-backporter.rb =================================================================== --- tool/redmine-backporter.rb (revision 56501) +++ tool/redmine-backporter.rb (revision 56502) @@ -419,7 +419,11 @@ eom https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L419 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 Index: ChangeLog =================================================================== --- ChangeLog (revision 56501) +++ ChangeLog (revision 56502) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Oct 27 16:33:47 2016 NAKAMURA Usaku <usa@r...> + + * tool/redmine-backporter.rb (rel): check the exception and show right + message. + Thu Oct 27 14:57:33 2016 Kazuki Yamaguchi <k@r...> * ext/socket/lib/socket.rb (UDPSocket#recvfrom_nonblock): [DOC] Remove -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/