[PATCH] util: set the hidden attribute on .hg/ during creation on windows (issue4178)

Mads Kiilerich mads at kiilerich.com
Sun Feb 23 06:33:52 CST 2014


On 02/23/2014 11:29 AM, timeless at gmail.com wrote:
> ‎Mads wrote:‎
>> Mercurial is based on the unix tradition where all files starting with '.' are hidden.
>> If we really want to set the 'hidden' attribute on windows,
>> couldn't win32.makedir just do that if the directory starts with '.'?
>> That would also raise the question if files like .hgignore and
>> directories like .hglf also should be ignored ...
> I'm pretty sure I don't want this behavior for those files.
>
> Windows treats files by file extension. I'd be horribly confused if I didn't see / couldn't easily edit these files. It's bad enough that Windows editors don't really like files with no name.

You lost me there. Mercurial do not use extensions on .hgignore and 
.hg/hgrc and that is a bit inconvenient when using point'n'click UI's 
... but that is a completely different story.

Is it harder to edit hidden files than other files? Or is it just that 
it is harder to discover them?

Anyway, the argument against hiding .hgignore must also apply to hiding 
.hg where hgrc resides.

It seems like it would be better to do this in an extension where those 
who want this feature can get it.

/Mads


More information about the Mercurial-devel mailing list