two factors for switching to Mercurial
Risto Kankkunen
risto.kankkunen at gmail.com
Tue Jun 17 18:32:29 CDT 2008
Kai Großjohann <kai <at> emptydomain.de> writes:
>
>
> Risto Kankkunen wrote:
>
> Matt Mackall <mpm <at> selenic.com> writes:
>
>
> It's very simple: almost all directories are implied by the existence of
> files. The main benefit of explicitly tracking directories is that you
> can track empty directories. And that's a whole lot of extra complexity
> to track a whole lot of nothing.
>
>
>
> I just realized that the project I'm working has empty directories which we
> need.
>
>
> Do they really need to be empty? Can't there be a file ".keep" in each
> of them?
They must be empty in our case, so the dummy file trick doesn't work.
There are several ways to handle empty directories (e.g. have dummy files (if
applicable) or have some code to create them, maybe based on a config file
maintained by hg), but in any case each project needing those has to come up
with some special hacks to cover for the lack of empty directory tracking.
Directory tracking in general would of course be a bigger bonus if it results
e.g. in correct rename handling.
More information about the Mercurial
mailing list