ruby-changes:57263
From: Nobuyoshi <ko1@a...>
Date: Mon, 26 Aug 2019 20:02:33 +0900 (JST)
Subject: [ruby-changes:57263] Nobuyoshi Nakada: 48f1a38f23 (master): Limit ChangeLog entries
https://git.ruby-lang.org/ruby.git/commit/?id=48f1a38f23 From 48f1a38f23f9a544e71c5656c83c419c064509fd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 26 Aug 2019 18:21:04 +0900 Subject: Limit ChangeLog entries Since the previous release date, when the starting message is not found. diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 15ec4c1..db0af88 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -572,9 +572,14 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L572 unless $?.success? raise "need notes/commits tree; run `git fetch origin refs/notes/commits:refs/notes/commits` in the repository" end - range = [from, (to || 'HEAD')].compact.join('^..') - cmd_pipe({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, - %W"#{COMMAND} log --format=medium --notes=commits --date=iso-local --topo-order #{range}", "rb") do |r| + cmd = %W"#{COMMAND} log --format=medium --notes=commits --date=iso-local --topo-order" + to ||= 'HEAD' + if from + cmd.push("#{from}^..#{to}") + else + cmd.push("--since=25 Dec 00:00:00", to) + end + cmd_pipe({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, cmd, "rb") do |r| format_changelog(r, path) end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/