Reputation: 37378
How can ignore the folder called build
in the root of my project, but not ignore a folder called build
anywhere else?
i.e.
/myprog/.hgignore
/myproj/make
/myproj/build <-ignore this
/myproj/lib/somelib/build <- dont ignore this
Upvotes: 3
Views: 111
Reputation: 1360
You could use the regexp syntax as per doc. Your .hgignore should then contain
syntax: regexp
^build
Upvotes: 9
Reputation: 15242
You can use the .hgignore
file. You will want to add a line
/myproj/build
Upvotes: 0