Use balls, they are easier:
C:> dir
tests languages pr0n espionage more_pr0n
C:> type .hgignore
syntax: glob
pr0n/*
espionage/*
more_pr0n/*
added . If you are concerned that there will be new directories that will not be ignored, you should:
hg add .hgignore
hg commit
echo "new_directory/*" >> .hgignore
hg commit
, , .