diff mercurial/localrepo.py @ 7229:7946503ec76e

introduce fncache repository layout * adds a new entry 'fncache' to '.hg/requires' for new repos * writes new file '.hg/store/fncache' * hash-encodes filenames with long paths (issue839) * encodes Windows reserved filenames (issue793)
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 19 Oct 2008 19:12:07 +0200
parents b71a52f101dc
children 9f0e52e1df77
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Oct 16 19:40:09 2008 +0300
+++ b/mercurial/localrepo.py	Sun Oct 19 19:12:07 2008 +0200
@@ -16,7 +16,7 @@
 
 class localrepository(repo.repository):
     capabilities = util.set(('lookup', 'changegroupsubset'))
-    supported = ('revlogv1', 'store')
+    supported = ('revlogv1', 'store', 'fncache')
 
     def __init__(self, parentui, path=None, create=0):
         repo.repository.__init__(self)
@@ -35,6 +35,7 @@
                 if parentui.configbool('format', 'usestore', True):
                     os.mkdir(os.path.join(self.path, "store"))
                     requirements.append("store")
+                    requirements.append("fncache")
                     # create an invalid changelog
                     self.opener("00changelog.i", "a").write(
                         '\0\0\0\2' # represents revlogv2