problems with empty directories and "hg clean"

Dmitry Nezhevenko dion at inhex.net
Tue Mar 25 16:27:55 CDT 2008


On Tue, Mar 25, 2008 at 06:00:54PM +0100, Ondrej Certik wrote:
> I am not even reporting this as a bug, as I think it's just a feature.
> But how would you suggest me to improve my usage of Mercurial, so that
> I don't accidentaly delete empty directories? I find it inconsistent,
> that "hg st" doesn't report them, but "hg clean" does delete them.
> 

According to manual it's no bug, it's a feature (C). Mercurial don't
handle directories at all. It just handle files. You can just try to add
some file empty to this directory (like ".empty") and add it using hg add.

-- 
WBR, Dmitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://selenic.com/pipermail/mercurial/attachments/20080325/e5e94c45/attachment.pgp 


More information about the Mercurial mailing list