[patch] syntax:plain for .hgignore
Alexis S. L. Carvalho
alexis at cecm.usp.br
Sun Sep 9 13:58:17 CDT 2007
Thus spake Benoit Boissinot:
> [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:'.
There's one significant difference:
- path:path/to/dir matches any file under path/to/dir/
- plain:path/to/dir only matches a file called path/to/dir
More information about the Mercurial-devel