[PATCH 0 of 1] Add .hginclude support (like .hgignore, except specifies what to include).

Benoit Boissinot bboissin at gmail.com
Wed Nov 2 16:26:59 UTC 2005


On 11/2/05, Mitch Frazier <mitch at fmr.name> wrote:
> Benoit Boissinot wrote:
> > What is the difference between this and ignoring everything in
> > .hgignore ?
>
> Files/patterns in .hgignore are never included, files/patterns in
> .hginclude are always included.
>
> Let me give you an example.  Say you want to archive the following files:
>
>   /etc/my.cnf        # mysql configuration
>   /etc/hosts         # host/IP address list
>
> [snip]
> You could try putting this in .hgignore, to ignore everything:
>
>    syntax: glob
>    *
>
> and then only add files you want, unfortunately this doesn't work as you
> get python exceptions when you try to run may hg commands.

That's what i wanted to say, this should work and i think this is the proper
way to do it.
If it tracebacks, this is a bug and we should try to fix it.

I think it is much simpler to ignore everything and add what we want
to track with "hg add" without caring about another config file.

regards,

Benoit




More information about the Mercurial mailing list