1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Generate log from svn log

When there's multiple revisions, all svn logs should be used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-03-11 19:03:11 +00:00
parent f0e0823042
commit 1c96bfab98

View file

@ -212,13 +212,14 @@ else
end
log << l
log_svn << l.lines.grep(/^\+\t/).join.gsub(/^\+/, '').gsub(/^\t\*/, "\n\t\*")
l = l.lines.grep(/^\+\t/).join.gsub(/^\+/, '').gsub(/^\t\*/, "\n\t\*")
if log_svn.empty?
log_svn = IO.popen %w'svn log ' + r + [q] do |f|
if l.empty?
l = IO.popen %w'svn log ' + r + [q] do |f|
f.read
end.sub(/\A-+\nr.*\n/, '').sub(/\n-+\n\z/, '').gsub(/^(?=\S)/, "\t")
end.sub(/\A-+\nr.*\n/, '').sub(/\n-+\n\z/, '').gsub(/^./, "\t\\&")
end
log_svn << l
a = %w'svn merge --accept=postpone' + r + [q]
STDERR.puts a.join(' ')