diff mercurial/localrepo.py @ 13795:43b5fe18ea6c

set NOT_CONTENT_INDEXED on .hg dir (issue2694) when running on Windows
author Adrian Buehlmann <adrian@cadifra.com>
date Mon, 28 Mar 2011 15:54:22 +0200
parents 307c72686eb0
children 8ba08a16e4e0
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Mar 29 16:25:48 2011 +0200
+++ b/mercurial/localrepo.py	Mon Mar 28 15:54:22 2011 +0200
@@ -47,7 +47,7 @@
             if create:
                 if not os.path.exists(path):
                     util.makedirs(path)
-                os.mkdir(self.path)
+                util.makedir(self.path, notindexed=True)
                 requirements = ["revlogv1"]
                 if self.ui.configbool('format', 'usestore', True):
                     os.mkdir(os.path.join(self.path, "store"))