We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>DirectRcsManipulation (04 Nov 2007, PeterThoeny)
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 - 04 Nov 2007 - 08:28:29 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback