About "-A" option and ".hgignore"
Bruce Frederiksen
dangyogi at gmail.com
Sat Jul 25 17:03:51 CDT 2009
The .hgignore file should not be in the .hg directory. Just place it in the
root directory of your project (the directory containing the .hg
directory). Then you can 'hg add .hgignore' to track it too.
-Bruce
On Sat, Jul 25, 2009 at 5:45 PM, frankabel <frank.abel.cb at gmail.com> wrote:
> Hi all,
>
> I have a blank repo(created with "hg init" in a blank directory) with
> a working copy of two files, "a.py" and "a.pyc". I need exclude from
> my commits all "*.pyc" files, beside, I love "-A" commit option. I
> know that this command works "hg commit -A -X '**.pyc'".
>
> My question is: Why I can't use a ".hg/.hgignore" file with the
> following lines
>
> syntax: glob
> *.pyc
>
> to archive that? Would be nice if I ca avoid retype in each commit the
> "-X" parameter. I think that "-A" commit options and override the
> ".hgignore", cause I read in the man "The patterns in an ignore file
> do not apply to files managed by Mercurial."
>
> Any idea of how uses "-A" option and ".hgignore" at the same time?
>
> Cheers
> Frank
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090725/3821fddb/attachment.htm
More information about the Mercurial
mailing list