IO.popen('cvs log') do |io|
io.read.split(/^=+\n/).each do |per_file|
file = nil
- per_file.scan(/^RCS file:\s+(.+),v$/) do |match|
- file = match[0]
+ per_file.scan(/^RCS file:\s+(.+),v$/) do |file,|
break
end
break unless file
date:\s+(?:.+?);\s+\
author:\s+(.+?);\s+\
state:\s+(?:.+?);\s+\
-lines:\s+(.+)$/) do |match|
- rev, author, lines = match
+lines:\s+(.+)$/) do |rev, author, lines|
if mia_authors.include?(author)
prev_rev = rev.sub(/\d+\z/) {|s| (s.to_i - 1).to_s}
puts("cvs diff -u -r #{prev_rev} -r #{rev} #{base}\t# #{lines}")