[Bug 4178] New: Set the hidden bit on the .hg directory during hg clone/init on windows

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Feb 21 08:20:18 CST 2014


http://bz.selenic.com/show_bug.cgi?id=4178

          Priority: normal
            Bug ID: 4178
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: Set the hidden bit on the .hg directory during hg
                    clone/init on windows
          Severity: feature
    Classification: Unclassified
                OS: Windows
          Reporter: emorley at mozilla.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.9
         Component: Mercurial
           Product: Mercurial

Windows has no concept of dot files/directories being hidden - instead, they
must have a 'hidden' attribute set.

As such, some other VCSes mark the metadata directory (eg '.git/') as having
the hidden attribute upon its initial creation (ie on the equivalents of hg
clone or hg init), to ensure parity with unix based filesystems.

This has the advantage that both the OS filesystem search & also editors
grepping repositories can easily exclude the .hg directory (eg notepad++'s
'find in files' feature has a 'exclude hidden directories' pref).

Please may we change the Mercurial behaviour here on Windows for this?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list