Jesper,
>During the move from my MKS/SI repository to
>CVS I found this thing:
>
>In src/rcs.c line 4068 (CVS-1.10.8) there is a
>strncmp which fails, due to 'log' is NULL.
>
>I added a check for log != NULL and the program
>run fine again.
>
>Is this a bug or has something in the conversion
>gone wrong ?
>
>Cheers,
>
> Jesper Pedersen
This could be considered a bug, but I think it's really more of a
"functional characteristic" of RCS. RCS does not allow empty revision
comments in non-interactive check-ins. I discovered this also a few years
ago when writing a PVCS to RCS conversion script. This is the way I dealt
with in (in perl script form):
# If an empty comment is specified, RCS will not check in the file;
# check for this case. (but an empty -t- description is fine - go figure!)
# Since RCS will pause and ask for a comment if one is not given,
# substitute a dummy comment "no comment".
if ( $comment[$i] eq "\"\"" )
{
$ci_command =
"ci -f -r$rcs_rev_num[$i] -d$checked_in[$i] -w$author[$i]
-t-$description -m\"no comment\" $workfile";
}
else
{
$ci_command =
"ci -f -r$rcs_rev_num[$i] -d$checked_in[$i] -w$author[$i]
-t-$description -m$comment[$i] $workfile";
}
Regards,
David