Strange 'hg revert' behavior (bug?)

Arne Babenhauserheide arne_bab at web.de
Thu Jan 15 03:29:52 CST 2009


Am Donnerstag 15 Januar 2009 09:43:39 schrieb Isaac Jurado:
> On Thu, Jan 15, 2009 at 9:17 AM, Alpár Jüttner <alpar at cs.elte.hu> wrote:
> > Well,
> >
> >        $ time hg version
> >        Mercurial Distributed SCM (version 1.1.2)
> >
> >        Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
> >        This is free software; see the source for copying conditions.
> > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> > PARTICULAR PURPOSE.
> >
> >        real    0m0.112s
> >        user    0m0.076s
> >        sys     0m0.032s
> >
> > with tons of extension turned on, so its quite a weak argument.
>
> Python's import implementation is slightly modified by mercurial to load
> modules "on demand".  What I don't know is the exact semantics of it.
>
> So I guess the amount of extensions affects only under certain
> scenarios.

Could you run the same test without extensions? 

For me it gives without extensions: 

------ ------ ------ ------ ------ ------ ------ ------ ------ 
$ time hg version
Mercurial Distributed SCM (version unknown)

Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

real    0m0.133s
user    0m0.039s
sys     0m0.018s

------ ------ ------ ------ ------ ------ ------ ------ ------ 

with extensions: 

------ ------ ------ ------ ------ ------ ------ ------ ------ 

$ time hg version
Mercurial Distributed SCM (version unknown)

Copyright (C) 2005-2008 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

real    0m0.293s
user    0m0.073s
sys     0m0.020s

------ ------ ------ ------ ------ ------ ------ ------ ------ 

At the very least it has to check for each extension if it changes the command 
you use. 

Some of my extensions are ones which aren't shipped with Mercurial, though. 

Best wishes, 
Arne
-- 
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090115/f544201c/attachment.pgp 


More information about the Mercurial mailing list