[dokuwiki] Re: From CVS to Dokuwiki
- From: "Harry Fuecks" <hfuecks@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 9 Mar 2007 09:39:18 +0100
Interesting. Output from cvs2cl might be an easy way to build the
dokuwiki changelog http://www.red-bean.com/cvs2cl/. For extacting
revisions and storing them in the dokuwiki attic some custom script
would probably be needed, but might not be too hard.
On 3/5/07, Martin Gill <martin@xxxxxxxxxxxxxxxxx> wrote:
On Mon, 5 Mar 2007 09:26:33 +0100, Alexander Johannes <lists@xxxxxxxxxxx> wrote:
> This is completely out of question.
Well, I did say it was a filthy hack :P
>
> Using touch(1), i'm able to change a- and mtime of a file. dwpage.php
> calls saveWikiText from inc/common.php to commit some text from a file:
>
> saveWikiText($WIKI_ID, file_get_contents($TARGET_FN), $OPTS->get('m'));
>
> When you take a look at the function saveWikiText, you can see, that
> it is reading the mtime of the current revision. But a quick test
> showed me, that DW also honours the timestamps saved in the .changes
> and .meta-files in the data/meta-directory. So changing the mtime of
> the file in the data-directory will not help. Aparently i have to
> alter the timestamps in the files of the meta-directory.
>
Looks like you'll need some form of script then.
For each file you import, grep the name in the meta directory and update the
entry, but I suspect you already realised that.
Any chance once you've succeeded at this, you could write it up for the Wiki
please and include your scripts? (http://wiki.splitbrain.org/wiki:dokuwiki) You
could become someone else's hero :)
--Martin
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
- [dokuwiki] Re: From CVS to Dokuwiki
- From: Alexander Johannes
- [dokuwiki] Re: From CVS to Dokuwiki
- From: Martin Gill
Other related posts:
- » [dokuwiki] From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
- » [dokuwiki] Re: From CVS to Dokuwiki
On Mon, 5 Mar 2007 09:26:33 +0100, Alexander Johannes <lists@xxxxxxxxxxx> wrote:
> This is completely out of question.
Well, I did say it was a filthy hack :P
>
> Using touch(1), i'm able to change a- and mtime of a file. dwpage.php
> calls saveWikiText from inc/common.php to commit some text from a file:
>
> saveWikiText($WIKI_ID, file_get_contents($TARGET_FN), $OPTS->get('m'));
>
> When you take a look at the function saveWikiText, you can see, that
> it is reading the mtime of the current revision. But a quick test
> showed me, that DW also honours the timestamps saved in the .changes
> and .meta-files in the data/meta-directory. So changing the mtime of
> the file in the data-directory will not help. Aparently i have to
> alter the timestamps in the files of the meta-directory.
>
Looks like you'll need some form of script then.
For each file you import, grep the name in the meta directory and update the
entry, but I suspect you already realised that.
Any chance once you've succeeded at this, you could write it up for the Wiki
please and include your scripts? (http://wiki.splitbrain.org/wiki:dokuwiki) You
could become someone else's hero :)
--Martin
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- [dokuwiki] Re: From CVS to Dokuwiki
- From: Alexander Johannes
- [dokuwiki] Re: From CVS to Dokuwiki
- From: Martin Gill