What's the simplest .hgignore syntax to ignore a directory and all its contents?

Craig Ozancin c.ozancin at gmail.com
Thu Sep 16 21:09:52 UTC 2021


It is really simple. If you have a single directory that you know the path
to, add something line this to your .hgignore before any globbing / regex
statements:

work/tracefiles/

If it is in an subdirectory somewhere and is a unique name, you can do
something like this:''



On Thu, Sep 16, 2021 at 12:46 PM Chris Green <cl at isbd.net> wrote:

> As per the subject, if I want to ignore a directory and all its
> contents and sub-directories what is the easiest way to do this in
> .hgignore?
>
> I'm assuming there is only one directory with the name I want to
> ignore.
>
> --
> Chris Green
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210916/1f6cf8d1/attachment-0002.html>


More information about the Mercurial mailing list