Question
Is it possible to directly manipulate TWiki RCS files using command line tools (without adverse consequences to TWiki)?
This presumes that the user doing this has access to the correct server and rw access to the files and directory.
The reason for asking is not specifically for manual operations but primarily for automatic, scripted page updates.
It ought to be possible to run something like this series of commands,
$ cd ~twiki/data/WEB/
$ co -l PageName.txt
# update page ...
$ ci -u PageName.txt
...except that, while none of the file are reported to be locked by RCS, they have 644 permissions which usually implies an RCS lock.
I could add,
$ chmod 644 PageName.txt
to the above sequence.
Environment
--
DaveClose - 02 Nov 2007
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.
It is not recommended to directly manipulate
RCS files because TWiki does some extra stuff on topic save: Save plain text file; update topic info cache in text file, update changes file for e-mail notification. In addition, plugins might use hooks into the save routine (for caching, export to HTML etc.)
It is better to use the official
TWiki::Func API,
TWikiFuncDotPm, to update create/topics and attachments.
--
PeterThoeny - 04 Nov 2007