I need an .hgdontignore file :-) to include certain files and exclude everything else in a directory. Basically I want to include only the .jar files in a particular directo
Anyone that wants to use negative lookaheads (or ?!
in regex syntax) or any kind of back-referencing mechanism should be aware that Mercurial will fall back from google's RE2
to Python's re
module for matching.
RE2 is a non-backtracking engine that guarantees a run-time linear with the size of the input. If performance is important to you, that is if you have a big repository, you should consider sticking to more simple patterns that Re2 supports, which is why I think that the solution offered by Ryan.