If I "hg remove" the last file in a directory, mercurial removes
the directory on commit (see below).
Perhaps it's an upstream bug.
Perhaps it's a feature documented in the Definitive Guide, but I
won't buy the book just to check this, and the online version at
http://hgbook.red-bean.com/read/ is barely usable.
Script started on Tue Dec 4 16:21:35 2012
| $ hg init
| $ mkdir d
| $ echo a > d/a
| $ hg add d/a
| $ hg commit -m file_created
| $ ls -s d
| total 4
| 4 a
| $ hg manifest -v
| 644 d/a
| $ hg rm d/a
| $ hg commit -m file_removed
| $ ls -s d
| ls: cannot access d: No such file or directory
Script done on Tue Dec 4 16:23:16 2012