Edit detail for How to push ZWiki changes to a SubVersion repository revision 1 of 1

1
Editor: Riccardo Murri
Time: 2006/11/28 07:20:23 GMT+0
Note: corrected URL quoting for ReST

changed:
-
Here it is described a small hack I use to push ZWiki changes into a
Subversion repository.  It does *not* track edit messages, will
collapse several edits in just one commit (depending on how often you
run the push script), and will handle a page rename just like a
delete+add.

I use it to download the ZWiki sources every few hours (via a ``cron``
job) and commit the changes to a SVN repository.

Installation
============

1. Install in your Wiki this DTML method:

     http://www.egrid.it/cgi-bin/viewcvs.cgi/\*checkout\*/gme/list_all_pages.dtml?root=svn

   Give it the ``list_all_pages`` id.

2. Create a subversion repository to host your wiki pages (*Note:*
   they will all end up in the same directory!).  Check a copy out,
   and add to it the script ``push-zwiki-to-svn.sh`` from the
   following URL:
  
     http://www.egrid.it/cgi-bin/viewcvs.cgi/\*checkout\*/gme/push-zwiki-to-svn.sh?content-type=text%2Fplain&root=svn

3. Edit the ``push-zwiki-to-svn.sh`` script to suit your ZWiki URL.

Now, each time you run ``push-zwiki-to-svn.sh``, all pages of the
ZWiki will be downloaded and the changed ones will be committed to the
SVN repository.


Here it is described a small hack I use to push ZWiki changes into a Subversion repository. It does not track edit messages, will collapse several edits in just one commit (depending on how often you run the push script), and will handle a page rename just like a delete+add.

I use it to download the ZWiki sources every few hours (via a cron job) and commit the changes to a SVN repository.

Installation

  1. Install in your Wiki this DTML method:

    http://www.egrid.it/cgi-bin/viewcvs.cgi/*checkout*/gme/list_all_pages.dtml?root=svn

    Give it the list_all_pages id.

  2. Create a subversion repository to host your wiki pages (Note: they will all end up in the same directory!). Check a copy out, and add to it the script push-zwiki-to-svn.sh from the following URL:

    http://www.egrid.it/cgi-bin/viewcvs.cgi/*checkout*/gme/push-zwiki-to-svn.sh?content-type=text%2Fplain&root=svn

  3. Edit the push-zwiki-to-svn.sh script to suit your ZWiki URL.

Now, each time you run push-zwiki-to-svn.sh, all pages of the ZWiki will be downloaded and the changed ones will be committed to the SVN repository.