About "-A" option and ".hgignore"

frankabel frank.abel.cb at gmail.com
Sat Jul 25 18:04:08 CDT 2009


Thanks a lot Bruce!

I just read "The Mercurial system uses a file called .hgignore in the
root directory of a repository" in the man page of hgignore, and think
that "root directory of a repository" is the .hg dir, due to .hg is
the repo and the parent dir is the working copy, but well, seem like I
was wrong.

Cheers
Frank

On Jul 25, 6:03 pm, Bruce Frederiksen <dangy... at gmail.com> wrote:
> 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... 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
> > Mercur... at selenic.com
> >http://selenic.com/mailman/listinfo/mercurial
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercur... at selenic.comhttp://selenic.com/mailman/listinfo/mercurial



More information about the Mercurial mailing list