зеркало из https://github.com/github/ruby.git
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.
This commit is contained in:
Родитель
a3f5265fd1
Коммит
2d017d6126
|
@ -569,8 +569,12 @@ elsif $svn
|
|||
elsif $git
|
||||
abort "#{File.basename $0}: use -srcdir with cloned local repository"
|
||||
else
|
||||
begin
|
||||
vcs = VCS.detect(File.expand_path("../..", __FILE__))
|
||||
rescue VCS::NotFoundError
|
||||
vcs = VCS::SVN.new(SVNURL)
|
||||
end
|
||||
end
|
||||
|
||||
success = true
|
||||
revisions.collect {|rev| package(vcs, rev, destdir, tmp)}.flatten.each do |name|
|
||||
|
|
Загрузка…
Ссылка в новой задаче