problems with empty directories and "hg clean"

Michael Smith michael.smith at thalesatm.com
Tue Mar 25 18:43:34 CDT 2008


You seem to have put my post into a reply to somebody else...

Ondrej Certik wrote:
>>  I use HG to manage the configuration of my servers but I don't do it
>>  directly. I version control a directory tree which I recursively copy
>>  into the file system, not just /etc.
> 
> So you version [...] part of it and then you copy
> it to the "/"?

Yes.

>>  For me, this approach makes it easier to reuse a repository, eg,
>>
>>  hg clone old-config new-config
>>
>>  ...for a new system.
> 
> You clone it and then you copy it? Interesting approach. I mainly use
> it for backups, but as I said - unfortunately I cannot rely on it,
> because
> empty directories are not handled by mercurial.

I use HG for configuration management. I use rsync for backups.

The thing about backups is that a component of the OS could create a new 
file which would not be tracked until something did an hg add on it. 
Working that way is not very reliable IMO.
-- 
Michael Smith               | 61 386 304 560
Team Leader, Case and Tools | 61 416 062 898
Thales Australia TCC        |    S  37.82329
Melbourne, Victoria         |    E 144.95426
--------------------------------------------
Confidentiality Notice: This e-mail may contain confidential and/or 
privileged information and is intended solely for the addressee(s) 
named. If you have received this information in error, or are advised 
that you have been posted this e-mail by accident, please notify the 
sender by return e-mail, do not redistribute it, delete the e-mail and 
keep no copies.


More information about the Mercurial mailing list