Question
I recently upgraded from an old version of TWiki (2003 vintage) to 4.0.4. I have pretty much everything working properly, except that TWiki is no longer tracking the version history for attachments.
For old attachments (pre-upgrade), new versions are not being added to the version history list. For new attachments, the list is empty (only the table heading is displayed). I noticed that for new entries a ,v is created, but it is very small (81 bytes).
Environment
--
CameronSmith - 21 Dec 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The ,v is the version history those files. You need to manually edit those files unless you can find a script to do this for you.
--
SteveStark - 23 Dec 2006
On existing attachments: Make sure that the
RCS lock is removed. See
TWikiUpgradeGuide.
On new attachments: 81 bytes is too small, it indicates a corrupt repository file. Check the arguments to the ci rcs command in configure.
--
PeterThoeny - 24 Dec 2006
I am using
RCS 5.7. The
RCS commands should be the defaults, although they may have been inherited from the version that I upgraded from (2003). Here are several of them:
{RCS}{initTextCmd} /usr/bin/rcs -i -t-none -ko %FILENAME|F%
{RCS}{initBinaryCmd} /usr/bin/rcs -i -t-none -kb %FILENAME|F%
{RCS}{ciCmd} /usr/bin/ci -q -l -m"%COMMENT%" -t-none -w"CameronSmith" %FILENAME%
I don't have any problems with text TWiki pages, only attachments. I wonder if this could be an issue with binary files?
Here's the contents of one of the 81 byte ,v files. They all look the same.
head ;
access;
symbols;
locks; strict;
comment @# @;
expand @b@;
desc
@none
@
--
CameronSmith - 02 Jan 2007
Good news - I updated the ciCmd and ciDateCmd to the defaults in 4.0.4 and the repository files are now being created correctly.
Specifically, the commands should be:
{RCS}{ciCmd} /usr/bin/ci -q -l -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F%
{RCS}{ciDateCmd} /usr/bin/ci -l -q -mnone -t-none -d%DATE|D% -u -w%USERNAME|S% %FILENAME|F%
--
CameronSmith - 02 Jan 2007