Tags:
create new tag
, view all tags

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

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL 4
Web server: Apache
Perl version: 5.8
Client OS: Linux
Web Browser: Firefox
Categories: Version control

-- DaveClose - 02 Nov 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r2 - 2007-11-04 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.