export_changelog must specify the branch's url
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd911b9367
commit
8d1dacb229
@ -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}"}
|
||||
|
@ -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'},
|
||||
|
Loading…
x
Reference in New Issue
Block a user