diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 03:25:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-07 03:25:28 +0000 |
commit | 2fa7cd751e6128733302dd91e06e91a460326a6a (patch) | |
tree | 8774d8516eeaf948bbbf606d205a534218fe4156 /tool/make-snapshot | |
parent | 4201000a7ceeed6285a0c9b712cf64515cb86fe8 (diff) |
vcs.rb: exclude beginning revision
* tool/make-snapshot: pass the last revision in the last ChangeLog
file without increment.
* tool/vcs.rb (export_changelog): exclude the beginning revision
of the range uniformly. svn log includes it, but git log not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index f278286b70..d2f92f53c6 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -220,7 +220,7 @@ def package(vcs, rev, destdir, tmp = nil) unless /\Ar(\d+) / =~ f.readline abort "Cannot find revision from '#{last_ChangeLog}'" end - vcs.export_changelog($1.to_i+1, revision.to_i, "#{v}/ChangeLog") + vcs.export_changelog($1.to_i, revision.to_i, "#{v}/ChangeLog") end open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"} |