Andrew Bullock
Andrew Bullock

Reputation: 37378

how to ignore a folder in a given location - mercurial

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

Answers (2)

TigrisC
TigrisC

Reputation: 1360

You could use the regexp syntax as per doc. Your .hgignore should then contain

syntax: regexp
^build

Upvotes: 9

msarchet
msarchet

Reputation: 15242

You can use the .hgignore file. You will want to add a line

/myproj/build

Upvotes: 0

Related Questions