[patch] syntax:plain for .hgignore

Benoit Boissinot benoit.boissinot at ens-lyon.org
Wed Sep 5 17:11:18 CDT 2007


[moving to -devel]

On Wed, Sep 05, 2007 at 11:50:01PM +0200, Guido Ostkamp wrote:
> Hello Benoit,
> 
> On Wed, 5 Sep 2007, Benoit Boissinot wrote:
> >On 9/5/07, Johannes Hofmann <Johannes.Hofmann at gmx.de> wrote:
> >>In a project at work we have a large repository with many generated
> >>files that have no specific extension (mostly executables).
> >>Therefore the .hgignore file is pretty large (more than 500 lines).
> >>In this setup "syntax:plain" (see patch below) speeds up hg status
> >>from 2.5s to about 1s.
> >>I'm not really familiar with python so this can probabely done more
> >>elegantly.
> >>
> >Can't you reuse the path:/relpath: from the pattern (just map plain to 
> >path)
> 
> can you please explain what you mean? I'm not sure I understand the 
> comment.

what I mean is that plain: looks very similar to 'path:'. So I
think the patch could be done in 2 parts:
1) speed up path (putting them in a a dict and check for existence,
instead of compiling a regexp)
2) add a 'plain:' syntax to hgignore which will map to 'path:'.

I hope it clarifies, sorry if I misread the patch, I only overlooked it.

regards,

Benoit

-- 
:wq


More information about the Mercurial-devel mailing list