Make multidiff work with files that have been cvs removed.

Bug #180528 r=timeless
This commit is contained in:
cls%seawood.org 2004-09-22 02:22:29 +00:00
Родитель e4191760ba
Коммит 5b7d605d0e
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -77,13 +77,12 @@ for my $k (@revs) {
next;
}
my $prevrev = &PrevRev($rev);
# this doesn't handle files in the attic
my $fullname = "$cvsroot/$dir/$file,v";
if (IsHidden($fullname)) {
$fullname = "$cvsroot/$dir/Attic/$file,v" if (! -r $fullname);
if (! -r $fullname || IsHidden($fullname)) {
next;
}
open( DIFF, "$rcsdiffcommand -u -r$prevrev -r$rev" . escape_shell($fullname) ." 2>&1|" );
open( DIFF, "$rcsdiffcommand -r$prevrev -r$rev -u " . shell_escape($fullname) ." 2>&1|" ) || die "rcsdiff failed\n";
while(<DIFF>){
if (($_ =~ /RCS file/) || ($_ =~ /rcsdiff/)) {
$_ =~ s/(^.*)(.*\/)(.*)/$1 $3/;