From 78364f9460ef09a9156ce473fe9e7b78028377d0 Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 22 Jan 2008 23:43:02 +0000 Subject: [PATCH] More simplified. --- find-changes-by-mia | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/find-changes-by-mia b/find-changes-by-mia index 14452a5..d3d1263 100755 --- a/find-changes-by-mia +++ b/find-changes-by-mia @@ -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}") -- 1.7.10.4