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

ruby-changes:57661

From: Nobuyoshi <ko1@a...>
Date: Sun, 8 Sep 2019 01:03:45 +0900 (JST)
Subject: [ruby-changes:57661] 2d017d6126 (master): make-snapshot: default to the toplevel directory

https://git.ruby-lang.org/ruby.git/commit/?id=2d017d6126

From 2d017d612657ab2cffc320dcad679a8854b14a6b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 8 Sep 2019 00:48:18 +0900
Subject: make-snapshot: default to the toplevel directory

As this tool has been intended to use in a working directory,
assume that the toplevel directory is under the VCS, and SVN will
no longer be canonical.

diff --git a/tool/make-snapshot b/tool/make-snapshot
index cacf971..546a977 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -569,7 +569,11 @@ elsif $svn https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L569
 elsif $git
   abort "#{File.basename $0}: use -srcdir with cloned local repository"
 else
-  vcs = VCS::SVN.new(SVNURL)
+  begin
+    vcs = VCS.detect(File.expand_path("../..", __FILE__))
+  rescue VCS::NotFoundError
+    vcs = VCS::SVN.new(SVNURL)
+  end
 end
 
 success = true
-- 
cgit v0.10.2


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

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