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