ruby-changes:55561
From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Apr 2019 01:25:10 +0900 (JST)
Subject: [ruby-changes:55561] Nobuyoshi Nakada:bb6036946e (trunk): Reduce matz's work, let git do it instead
https://git.ruby-lang.org/ruby.git/commit/?id=bb6036946e From bb6036946ef7337c8bef6380ba394c082d5452cb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 28 Apr 2019 00:30:16 +0900 Subject: Reduce matz's work, let git do it instead diff --git a/doc/ChangeLog-2016 b/doc/ChangeLog-2016 deleted file mode 100644 index 14fcba5..0000000 --- a/doc/ChangeLog-2016 +++ /dev/null @@ -1,6 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0 ------------------------------------------------------------------------- -r57181 | matz | 2016-12-26 01:35:51 +0900 (Mon, 26 Dec 2016) | 2 lines - -version.h (RUBY_VERSION): 2.5.0 development has started. - ------------------------------------------------------------------------- diff --git a/doc/ChangeLog-2017 b/doc/ChangeLog-2017 deleted file mode 100644 index 82c4f7c..0000000 --- a/doc/ChangeLog-2017 +++ /dev/null @@ -1,6 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0 ------------------------------------------------------------------------- -r61474 | matz | 2017-12-25 23:05:59 +0900 (Mon, 25 Dec 2017) | 2 lines - -version.h (RUBY_VERSION): 2.6.0 development has started. - ------------------------------------------------------------------------- diff --git a/doc/ChangeLog-2018 b/doc/ChangeLog-2018 deleted file mode 100644 index d2be5f4..0000000 --- a/doc/ChangeLog-2018 +++ /dev/null @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/#L0 -commit 3a0471faa0d383392ba05b3a6409b973b7b009d1 -Author: matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> -Date: Tue Dec 25 22:45:17 2018 - - version.h (RUBY_VERSION): 2.7.0 development has started. - - - git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e diff --git a/tool/make-snapshot b/tool/make-snapshot index 4e6818a..4ba1da5 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -338,18 +338,11 @@ def package(vcs, rev, destdir, tmp = nil) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L338 def (clean = []).add(n) push(n); n end Dir.chdir(v) do unless File.exist?("ChangeLog") - # get last revision from previous ChangeLog archive - last_ChangeLog = Dir["doc/ChangeLog-*"].grep(/-(\d+)\z/) {|n| [$1.to_i, n]}.max[1] - open(last_ChangeLog) do |f| - if /\Acommit (\w+)/ =~ f.readline - beginning = $1 - elsif /\Ar(\d+) / =~ f.readline - beginning = $1.to_i - else - abort "#{File.basename $0}: Cannot find revision from '#{last_ChangeLog}'" - end - vcs.export_changelog(url, beginning, revision, "ChangeLog") + # get the beginning revision from matz's commit + unless beginning = vcs.branch_beginning + abort "#{File.basename $0}: Cannot find revision from '#{last_ChangeLog}'" end + vcs.export_changelog(url, beginning, revision, "ChangeLog") end File.open(clean.add("cross.rb"), "w") do |f| diff --git a/tool/vcs.rb b/tool/vcs.rb index 7f302c9..6078f1a 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -451,6 +451,12 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L451 FileUtils.rm_rf(Dir.glob("#{dir}/.git*")) end + def branch_beginning + cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H --reverse + --author=matz --committer=matz --grep=start + -- version.h include/ruby/version.h]) + end + def export_changelog(url, from, to, path) range = [from, to].map do |rev| rev or next -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/