[前][次][番号順一覧][スレッド一覧]

ruby-changes:49151

From: usa <ko1@a...>
Date: Fri, 15 Dec 2017 12:05:00 +0900 (JST)
Subject: [ruby-changes:49151] usa:r61267 (trunk): check the existence of specified tag

usa	2017-12-15 12:04:56 +0900 (Fri, 15 Dec 2017)

  New Revision: 61267

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61267

  Log:
    check the existence of specified tag
    
    * tool/merger.rb (tag): check the existence of specified tag before tagging to
      get rid of careless mistakes.

  Modified files:
    trunk/tool/merger.rb
Index: tool/merger.rb
===================================================================
--- tool/merger.rb	(revision 61266)
+++ tool/merger.rb	(revision 61267)
@@ -142,6 +142,10 @@ def tag intv_p = false, relname=nil https://github.com/ruby/ruby/blob/trunk/tool/merger.rb#L142
   end
   tagname = 'v' + x + (v[0] < "2" || (v[0] == "2" && v[1] < "1") || /^(?:preview|rc)/ =~ pl ? '_' + pl : '')
   tag_url = $repos + 'tags/' + tagname
+  system(*%w'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
   if intv_p
     interactive "OK? svn cp -m \"add tag #{tagname}\" #{branch_url} #{tag_url}" do
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]