开发者

how to ignore a folder in a given location - mercurial

开发者 https://www.devze.com 2023-02-10 15:35 出处:网络
How can ignore the folder called build in the root of my project, but not ignore a f开发者_JAVA百科older called build anywhere else?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消