[xwiki-dev] [Idea] SVN bridge
jeremi joslin
jeremi at xwiki.com
Mon Nov 13 11:19:06 CET 2006
Hi ,
why do you need this? Why not just doing a backup?
One think we were thinking is adding to the export plugin the ability
to export the pages to an svn.
For implementing this, give a look ate the store package. As far as I
remember we can chain the storage objects. For example, the first
store is the cache and the second is hibernate. I think it's possible
to insert the svn here.
jeremi
On 11/13/06, Vincent Massol <vincent at massol.net> wrote:
> Hi,
>
> Here's something I would be keen to implement: a XWiki/SVN bridge. Imagine
> the following:
>
> * You edit a page on the wiki and when you click on save, xwiki saves the
> content to SVN in addition to saving it to the xwiki database
> * On the user profile page, we add 2 new fields: svn username and svn
> password. This is used when doing the save/commit.
> * We put a "svn update" button in the available actions for each page. We
> could also do that at the level of the space/wiki
> * If SVN says there's a conflict then we tell the user, do a merge and put
> the resulting merge inside the edit window and ask the user to sort it out.
> The user has to click on save again to save it.
> * We create a scheduling job (we are using the quartz scheduler, right?) to
> update the space/wiki every few hours (say 2 hours) by loading the content
> from svn for each page and saving it as the new content. Question: is this
> going to work? Is it possible that some pages would need to be updated in
> the correct order for it work, in which case the only solution would be a
> bulk update?
>
> Technical details:
> * We use JavaSVN
> * We use the low level API of JavaSVN (the one that doesn't use a
> workspace).
>
> WDYT?
>
> Could someone point to me where is the xwiki code where we would need to
> insert the SVN commit code so that I can have a look at it?
>
> Thanks
> -Vincent
>
>
>
>
>
>
>
>
>
> ___________________________________________________________________________
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
> Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
> http://fr.answers.yahoo.com
>
>
>
>
> --
> You receive this message as a subscriber of the xwiki-dev at objectweb.org mailing list.
> To unsubscribe: mailto:xwiki-dev-unsubscribe at objectweb.org
> For general help: mailto:sympa at objectweb.org?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>
--
jeremi
More information about the devs
mailing list