mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
tool/merger.rb: fix tag existence check with subversion.
This commit is contained in:
parent
c9dc569a94
commit
ed8d2e1cfd
1 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,8 @@ module Merger
|
|||
end
|
||||
|
||||
class << Merger
|
||||
include Merger
|
||||
|
||||
def help
|
||||
puts <<-HELP
|
||||
\e[1msimple backport\e[0m
|
||||
|
|
@ -139,7 +141,8 @@ class << Merger
|
|||
end
|
||||
end
|
||||
tag_url = "#{REPOS}tags/#{tagname}"
|
||||
unless system('svn', 'info', tag_url, out: IO::NULL, err: IO::NULL)
|
||||
system('svn', 'info', tag_url, out: IO::NULL, err: IO::NULL)
|
||||
if $?.success?
|
||||
abort 'specfied tag already exists. check tag name and remove it if you want to force re-tagging'
|
||||
end
|
||||
execute('svn', 'cp', '-m', "add tag #{tagname}", branch_url, tag_url, interactive: true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue