[darcs-users] Small wiki with darcs as backend

Alberto Bertogli albertito at blitiri.com.ar
Tue Dec 2 22:11:44 UTC 2008


On Tue, Dec 02, 2008 at 09:40:28PM +0000, Eric Kow wrote:
> On Sun, Nov 30, 2008 at 20:26:25 -0200, Alberto Bertogli wrote:
> > I've added darcs support to my small wiki engine (called wikiri), so I
> > thought I should drop a note here.
> 
> Looks very interesting indeed!  Have you seen the discussion on adding
> darcs support to gitit?

Yes, I have.

.From looking at http://github.com/jgm/gitit/tree/master/Gitit%2FGit.hs
with my small knowledge of Haskell, it looks like it'd be possible to
write a similar layer by calling darcs' binary, as I do for wikiri; with
the exception of grep (can be replaced by regular grep over the files
resulting from "darcs query manifest") and gitMergeFile (I have no idea
if this can be replaced, but maybe it can be avoided).

If anyone is interested in writing such code, maybe the wikiri code
(which is written in Python) can be useful for the commands equivalence
(and maybe parsing).

The relevant section of the code is in wikiri.cgi, line 644
(http://blitiri.com.ar/git/?p=wikiri;a=blob;f=wikiri.cgi;hb=HEAD#l644).

Obviously if anyone has any questions regarding it, please let me know.

Thanks,
		Alberto



More information about the darcs-users mailing list