Tags:
create new tag
view all tags

Question

Hey

I am currently migrating a wiki from VeryQuickWiki to twiki. Basically I am writing perl scripts to convert the data from VQWiki to twiki format.

My question - is it possible to directly checkin into the RCS the text files created by my perl scripts? I have been trying to figure out how but am having no luck.

Also when I have migrated the wiki I will make a package for my perl scripts to allow other users migrate from VeryQuickWiki to twiki.

Thanks for your help.

Andrew

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: WIN XP PRO
Web server: Apache 1.33
Perl version: 5.8
Client OS: Windows XP Pro SP2
Web Browser:  
Categories: Version control, Deployment

-- AndyIrwin - 26 Aug 2007

Answer

ALERT! 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.

If you do not care about carrying over the page revisions of the other wiki you can simply generate the .txt files and ignore the RCS files. TWiki will properly pick up the pages and assumes they are version 1. The next time a user saves one of these pages, the RCS file is created, and the version of the page is bumped up to version 2.

Look at the file format of TWiki's data/Web/TopicText.txt files. When you generate the .txt files, you do not need to add the TOPIC:INFO meta data (found in the first line), it gets added the next time a topic is updated. (Example meta data: %META:TOPICINFO{author="AndyIrwin" date="1188165800" format="1.1" version="1.1"}%)

If you want to carry over the revisions of the other wiki's pages, you need to use the TWikiPlugins API (TWikiFuncDotPm) to create the TWiki topics.

We'd love to get your converter posted on twiki.org. Please review AddOnPackageHowTo and create a VeryQuickWikiToTWikiAddOn package. There are other converters available where you could leverage some code. See Extensions:import.

-- PeterThoeny - 27 Aug 2007

Unfortunately that does not work.

RCS: failed to create file /twiki/data/Main/TestRCSLock.txt: Permission denied

I added a text file TestRCSLock.txt to data/Main .

When i tried to edit the wiki page I obtained the error above.

I tried locking the file using RCS -l TestRCSLock.txt but that did not work either.

Any suggestions

-- AndyIrwin - 27 Aug 2007

Sorted now thanks. I just had to change the file permissions smile .

-- AndyIrwin - 30 Aug 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-08-30 - AndyIrwin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.