In my project\'s .hgignore, I want to exclude /static/ (i.e., the static folder at the root of the directory), but not /templates/static/
.hgignore
/static/
/templates/static/
As of Mercurial 4.9, you can use syntax: rootglob to insert rooted glob patterns.
syntax: rootglob
New rootglob: filename pattern for a glob that is rooted at the root of the repository. See hg help patterns and hg help hgignore for details