track empty directory convention?

Haszlakiewicz, Eric EHASZLA at transunion.com
Wed Sep 28 18:42:37 UTC 2011


> -----Original Message-----
> From: mercurial-bounces at selenic.com [mailto:mercurial-
> 
> On Fri, Sep 23, 2011 at 7:42 AM, Arne Babenhauserheide
> <arne_bab at web.de> wrote:
> Personally I really don't like "littering" the source tree with .keep
> files just to overcome one of the few limitations of Mercurial.
> 
> A solution that I'd very much prefer is to have a single .hgkeep or
> .hgempty file on the top of the repository, containing a list of
> folders that must exist on a given revision. This file could be read
> by an extension which would make create the folders as needed on
> update.

ugh, that's a little gross.  Of course, extend this just a bit so "hg add somedir" and "hg rm somedir" operate on it, put the file in the .hg/ directory, and you've essentially taught mercurial real support for tracking directories. :)

eric



More information about the Mercurial mailing list