diff options
-rwxr-xr-x | tool/make-snapshot | 2 | ||||
-rw-r--r-- | tool/vcs.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index b235282350..d8e635af40 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -225,7 +225,7 @@ def package(vcs, rev, destdir, tmp = nil) 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}"} diff --git a/tool/vcs.rb b/tool/vcs.rb index 7d1ecd4a88..00f408612a 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -307,7 +307,7 @@ class VCS 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 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'}, |