Newbie on .hgignore
Tom Plunket
gamedev at fancy.org
Sat Feb 16 16:18:12 CST 2008
> 1) Where is it located? on the .hg/ directory?
I put mine in the repository itself.
E.g. my "repository" directory contains a directory named .hg as
well as a file named .hgignore. In this way, I can track the
.hgignore file along with the rest of the project. See also the
documentation on .hgrc to see how you can use an alternate location
(although the documentation isn't clear to me on whether ignore
files specified like this are in addition to the in-repo .hgignore
or instead of).
http://www.selenic.com/mercurial/hgrc.5.html
> 2) How do I add something like all .class files or all /dist
> directory?
http://www.selenic.com/mercurial/hgignore.5.html
# this is .hgignore
syntax: glob
*.class
# end of file
or
# another .hgignore
syntax: regexp
\.class$
# end of file
-tom!
More information about the Mercurial
mailing list