How to ignore a folder in a specific place - Mercury

How do I ignore a folder with a name buildin the root of my project, but not ignore a folder with a name buildsomewhere else?

i.e.

/myprog/.hgignore
/myproj/make
/myproj/build <-ignore this
/myproj/lib/somelib/build <- dont ignore this
+3
source share
2 answers

You can use regexp syntax according to doc . Your .hgignore should contain

syntax: regexp
^build
+9
source

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

/myproj/build

0
source

Source: https://habr.com/ru/post/1792038/


All Articles