How can ignore the folder called build
in the root of my project, but not ignore a f开发者_JAVA百科older called build
anywhere else?
i.e.
/myprog/.hgignore
/myproj/make
/myproj/build <-ignore this
/myproj/lib/somelib/build <- dont ignore this
You could use the regexp syntax as per doc. Your .hgignore should then contain
syntax: regexp
^build
You can use the .hgignore
file. You will want to add a line
/myproj/build
精彩评论