I tagged a set of CVS files, and used the Create new
topic screen with a CVS repository and a start and end
tag. I kept getting an error message:
"Problem generating topic text:"
but no description of the problem.
It did work correctly when I selected the "Default to
HEAD" checkbox. Examination of the code in
lib/Codestriker/Repository/Cvs.pm showed the following:
my $extra_options = $default_to_head ? '-u' : '-f';
$extra_options is used in the rdiff command.
Examination of the rdiff command, plus some
experimentation, showed that providing the -f option in
addition to -r to CVS produces no output, leading to
the error message.
$ cvs -d
-u -f -r 1.0 -r review01 mymodule/myfile.cpp
As you can see, no output. Changing the above "-f" to
"-u" produced the expected output. However, I could get
no combination of "-f" and "-r" to work as expected.
maybe I misunderstood how this works, or I am using an
old CVS (1.11.2).
Changing the code to
my $extra_options = $default_to_head ? '-f' : '-u';
solved the problem. It's not clear if the problem is a
code issue or a misunderstanding on my part, though.
Log in to post a comment.