[darcs-users] Interop with Darcs

Gwern Branwen gwern0 at gmail.com
Wed Jun 3 14:18:50 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Wed, Jun 3, 2009 at 1:42 AM, Artyom Shalkhakov  wrote:
> Hi,
>
> I'm trying to write a web interface for Darcs (one that isn't pain to use).
>
> AFAIK there are two ways to interoperate with Darcs:
> - invoke it on the command line, with optional XML output (hey,
> where's the schema?)
> - make use of Haskell modules exported by Darcs
>
> Is there a nicer way?
>
> Cheers,
> Artyom Shalkhakov.

There isn't any schema I know of. You really just have to parse it
kind of ad-hoc. Like in my Filestore code abstracting over darcs
(maybe you could use it), I just looked at the XML generating code in
darcs to see that the output is pretty much fixed - when you've seen
the nodes for one change from --xml-output, you've seen'em all.

- --
gwern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkomhksACgkQvpDo5Pfl1oJqCwCfTDW4llHhCvumJePvqEYCUzNo
6YIAn0jiwAumTkJQUyRYuomV3nQitrEX
=4ul6
-----END PGP SIGNATURE-----


More information about the darcs-users mailing list