mercurial as a wiki engine component

Benoit Boissinot bboissin at gmail.com
Sat Jun 24 03:02:42 CDT 2006


On 6/23/06, piotr maliński <riklaunim at gmail.com> wrote:
> I've started to play with mercurial from the python script level
> yesterday and I have some "problems". I don't know how to write a code
> that would like:
> 1. my "repo" is in folder X
> 2. execute a command on it (add, update, see diff, history and so on)
>
> I have basing on commands.py
> ---------------------------------------
> from mercurial import revlog
> from os import getcwd
>
> r = revlog.revlog(getcwd(), 'what_is_indexfile?', "", 0)
> ---------------------------------------
> and I don't know what he wants as a indexfile :)

He wants the index of the revlog file (the file.i)

A good start to understand this is:
http://www.selenic.com/mercurial/wiki/index.cgi/Design
and reading commands.py (for example debugindex and debugdata).

regards,

Benoit



More information about the Mercurial mailing list