[ANN] a thin wrapper for Mercurial command server

Idan Kamara idankk86 at gmail.com
Mon Dec 19 09:47:58 CST 2011


On Mon, Dec 19, 2011 at 12:13 PM, Martin Geisler <mg at lazybytes.net> wrote:
>
> Yuya Nishihara <yuya at tcha.org> writes:
>
> > Hi,
> >
> > I made a little C program which acts like a 'hg' command by
> > communicating with Mercurial command server.
>
> That's really cool! Can it run the normal Mercurial test suite?

I used to run the test suite using a little Python wrapper that used
the cmdserver, but there were some issues with a few tests (such
as loading extensions on the fly, setting environment variables etc.).

But taking test-mq.t (which is a pretty heavy test) and running it
through chg takes half the time:

$ CHG= time ./run-tests.py -l test-mq.t
.
# Ran 1 tests, 0 skipped, 0 failed.

real 0m9.180s
user 0m1.828s
sys 0m0.720s

$ time ./run-tests.py -l test-mq.t
.
# Ran 1 tests, 0 skipped, 0 failed.

real 0m20.033s
user 0m15.069s
sys 0m3.900s

That's pretty nice ;)

>
> --
> Martin Geisler
>
> Mercurial links: http://mercurial.ch/
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20111219/b581d4a7/attachment.html>


More information about the Mercurial mailing list