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
--
AndyIrwin - 26 Aug 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.
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

.
--
AndyIrwin - 30 Aug 2007