From 91e8a25672099f502057ea1d423b392826043687 Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 7 May 2002 22:58:57 +0000 Subject: [PATCH] * cvs2cl/fmtlog.rb: Fixed. --- cvs2cl/fmtlog.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cvs2cl/fmtlog.rb b/cvs2cl/fmtlog.rb index 158e16c..490f19f 100644 --- a/cvs2cl/fmtlog.rb +++ b/cvs2cl/fmtlog.rb @@ -1,6 +1,9 @@ -if /^\t\* ([^:]+): (\* \1)/ - $_ = "\t#{$2}#{$'}" -elsif /^(\d{4}-\d{2}-\d{2}) \d{2}:\d{2}/ - $_ = "#{$1}#{$'}" +case $_ +when /^\t(\* ([^:]+): )\* ([^: ]+)/ + data, files, file = $~, $2, $3 + if files.split(/, /).member?(file) + $_.slice!(data.begin(1) .. data.end(1) - 1) + end +when /^\d{4}-\d{2}-\d{2}( \d{2}:\d{2})/ + $_.slice!($~.begin(1) .. $~.end(1) - 1) end - -- 1.7.10.4