I want to ignore everything BUT a subfolder in Mercurial.
The folder I want to keep:
a/b/c/d/e/f
Everything else under:
a/b
Should be ignored.
I'm using regexp mode in the .hgignore file. This is what I've so far:
a/b/(?!c)
a/b/c/(?!d)
a/b/c/d/(?!e)
a/b/c/d/e/(?!f)
Even if this works fine, I would like to shrink it to a single line:
a/b/(?!c/d/e/f)
Except this doesn't work. I tried to escape the slashes in several ways, but it didn't help.
Any hint?