Bug: Create New Web Fails with useRcsDir
Create New Web gives "Error: Could not copy topics to the new web
The new web has been created, however not all topics could be copied from the base web.
Error message: Copy file ( /home/twiki/www/data/_default/WebChanges.txt,v, /home/twiki/www/data/Bayarea/WebChanges.txt,v ) failed, error: No such file or directory."
Test case
Create new installation with
useRcsDir=1 and
RCS dirs created according to installation guide. Figure out how to become an administrator (separate thread please

) and create a new web.
Environment
--
DavidKing - 27 Aug 2003
Follow up
Co-incidentally, I was trying to investigate why the latest revision always seems to be 1.1 no matter how many times a topic has been edited. It turns out that you need to add a line to TWiki.cfg:
@storeSettings = ( # RcsLite and Rcs dataDir => $TWiki::dataDir, pubDir => $TWiki::pubDir, useRcsDir => $TWiki::useRcsDir, # added I Huneke 1 Sept 2003 attachAsciiPath => "\.(txt|html|xml|pl)\$",
Maybe this would fix your problem too. An equivalent patch is described in
DiffsRevertsToOneError.
Thanks,
ImmoHuneke.
I see that you concur with
JohnRouillard.
This proves there are at least two ways to solve
DiffsRevertsToOneError. As a
new twiki user, I had to step thru code to find the uninitialized value and put my fix there. You don't say whether this solution resolves
CreateNewWebFailsWithUseRcsDir (this bug) but I'll try it when I get back to twiki.
Still, this class of error seems to be caused by redundancy in the config file. Maybe better to define important things once, like
@storeSettings = ( useRcsDir => 1, );
or move
@storeSettings out of the config file (doesn't guarantee happiness) or use structs or something to verify at compile time that
$self has what it needs...
I guess another way to see if
$self{xyz} is undefined is to continually scan the web server logs.
--
DavidKing - 01 Sep 2003
Fix record