More simplified.
authorueno <ueno>
Tue, 22 Jan 2008 23:43:02 +0000 (23:43 +0000)
committerueno <ueno>
Tue, 22 Jan 2008 23:43:02 +0000 (23:43 +0000)
find-changes-by-mia

index 14452a5..d3d1263 100755 (executable)
@@ -4,8 +4,7 @@ mia_authors = ARGV
 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
@@ -17,8 +16,7 @@ IO.popen('cvs log') do |io|
 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}")