You cannot use
RCS keywords in a topic. This is because
RCS keyword substitution will expand it to something different when the topic is saved.
All the following get munged:
- $Author$ becomes $Author: TWikiJanitor $
- $Date$ becomes $Date: 2008/09/10 04:46:15 $
- $Header$ becomes $Header: /var/www/twiki-shared/data/Codev/CannotUseDollarNameInTopicText.txt,v 1.7 2008/09/10 04:46:15 TWikiJanitor Exp $
- $Id$ becomes $Id: CannotUseDollarNameInTopicText.txt,v 1.7 2008/09/10 04:46:15 TWikiJanitor Exp $
- $Locker$ becomes $Locker: $
- $Log$ becomes $Log: CannotUseDollarNameInTopicText.txt,v $
- $Log$ becomes Revision 1.7 2008/09/10 04:46:15 TWikiJanitor
- $Log$ becomes none
- $Log$ becomes
- $Log$ becomes Revision 1.6 2005/06/19 18:33:49 nobody
- $Log$ becomes testenv
- $Log$ becomes
- $Log$ becomes Revision 1.5 2005/05/17 11:09:45 admin2
- $Log$ becomes testenv
- $Log$ becomes
- $Log$ becomes Revision 1.4 2005/03/03 10:09:22 CrawfordCurrie
- $Log$ becomes none
- $Log$ becomes
- $Name$ becomes $Name: $
- $RCSfile$ becomes $RCSfile: CannotUseDollarNameInTopicText.txt,v $
- $Revision$ becomes $Revision: 1.7 $
- $Source$ becomes $Source: /var/www/twiki-shared/data/Codev/CannotUseDollarNameInTopicText.txt,v $
- $State$ becomes $State: Exp $
Note that the change is not happening during preview; the previewed text looks OK. It's only when the topic is actually saved that it happens.
I have fixed the code so that any
new topics will be correctly initialised with the right
RCS options. Existing topics can be fixed from the command line using
rcs -ko TopicName.txt,v. If the string
expand @o
@ is present in the
,v file, keyword substition is off. Otherwise it is on.
This fix has required the addition of a new
$cfg option:
$cfg{RCS}{initTextCmd} = "$rcs/rcs $ext -q -i -t-none -ko %FILENAME|F%";
DevelopBranch r3722
--
CrawfordCurrie - 21 Feb 2005