#!/usr/bin/env ruby
file, rev, author, state = nil, nil, nil, :F
-mia_committers = ARGV
+mia_authors = ARGV
IO.popen('cvs log') do |io|
io.each_line do |line|
line.chomp!
case line
when /\A-+\z/
state = :R
- if rev && author && mia_committers.include?(author)
+ if rev && author && mia_authors.include?(author)
prev_rev = rev.sub(/\d+\z/) {|s| (s.to_i - 1).to_s}
puts("cvs diff -r #{prev_rev} -r #{rev} #{File.basename(file)}")
end