Origin: vendor Forwarded: no, upstream presumably dead Reviewed-by: gregor herrmann Last-Update: 2012-03-27 From ef84257ce9b0e17eddea6031112a563fb321be65 Mon Sep 17 00:00:00 2001 From: Niko Tyni Date: Tue, 27 Mar 2012 22:00:34 +0300 Subject: [PATCH] Properly handle incomplete lines when looking for a linefeed The test suite occasionally fails on loaded hosts when the output from the 'cvs' command comes in incomplete lines and the analyzer is looking for a linefeed. The fix is not to throw lone linefeeds away when an unmatched line is being analyzed. --- lib/Cvs/Command/Base.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Cvs/Command/Base.pm b/lib/Cvs/Command/Base.pm index 73b06c8..9f6d64f 100644 --- a/lib/Cvs/Command/Base.pm +++ b/lib/Cvs/Command/Base.pm @@ -162,7 +162,7 @@ sub run } # don't analyse empty lines, but $line have to be set - next if $line =~ /^\n*$/; + next if $line =~ /^\n*$/ and !defined $last; # Analysing the line: if a context is return, we replace # the current one with it to handling context -- 1.7.9.1