Accessing Mercurial repository with Python or Java

Martin Geisler mg at lazybytes.net
Wed May 13 07:22:53 CDT 2009


Daniele Development-ML <daniele.dml at googlemail.com> writes:

> Hello everybody,
> I am required to interface my web application with a Mercurial
> repository and I would like to understand what methods are available
> to programmatically access the data stored there.
>
> Unfortunately, I cannot find much documentation about this in the
> main web site, so here I am with a - probably - generic request of
> help on suggestions or pointers to useful guides.

The short answer is: we keep the command line interface stable so that
you can easily parse the output from any programming language.

Using Mercurial in this way will also not force you to license your
program under the GPL. If that is not a problem and you can interface
to Python code, then take a look here:

  http://www.selenic.com/mercurial/wiki/MercurialApi

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.


More information about the Mercurial mailing list