[patch] syntax:plain for .hgignore
Guido Ostkamp
hg at ostkamp.fastmail.fm
Wed Sep 5 16:50:01 CDT 2007
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.
The binaries produced which have no specific extension are not created
into one and the same directory; thus the directory path or relative path
cannot be used to identify them through a generic pattern, if you mean
that.
We have lots of directories usually containing Imakefile, sources, config
files and headers as static items under version control, and dynamically
created items like dependency files, Makefiles, object files, libraries
and binaries. The binaries have no extensions and thus cannot be caught by
any regular expression and there are hundreds so we need a huge .hgignore
file.
Regards
Guido
More information about the Mercurial
mailing list