ruby-changes:46007
From: naruse <ko1@a...>
Date: Fri, 24 Mar 2017 23:05:56 +0900 (JST)
Subject: [ruby-changes:46007] naruse:r58078 (trunk): export_changelog must specify the branch's url
naruse 2017-03-24 23:05:50 +0900 (Fri, 24 Mar 2017) New Revision: 58078 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58078 Log: export_changelog must specify the branch's url Modified files: trunk/tool/make-snapshot trunk/tool/vcs.rb Index: tool/vcs.rb =================================================================== --- tool/vcs.rb (revision 58077) +++ tool/vcs.rb (revision 58078) @@ -307,7 +307,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L307 FileUtils.rm_rf(dir+"/.svn") end - def export_changelog(from, to, path) + def export_changelog(url, from, to, path) range = [to, (from+1 if from)].compact.join(':') IO.popen({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, %W"svn log -r#{range} #{url}") do |r| @@ -424,7 +424,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L424 FileUtils.rm_rf("#{dir}/.git") end - def export_changelog(from, to, path) + def export_changelog(url, from, to, path) range = [from, to].map do |rev| rev or next rev = cmd_read({'LANG' => 'C', 'LC_ALL' => 'C'}, Index: tool/make-snapshot =================================================================== --- tool/make-snapshot (revision 58077) +++ tool/make-snapshot (revision 58078) @@ -225,7 +225,7 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L225 unless /\Ar(\d+) / =~ f.readline abort "#{File.basename $0}: Cannot find revision from '#{last_ChangeLog}'" end - vcs.export_changelog($1.to_i, revision.to_i, "#{v}/ChangeLog") + vcs.export_changelog(url, $1.to_i, revision.to_i, "#{v}/ChangeLog") end open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/