comparison mercurial/localrepo.py @ 7234:ae70fe6143fc

add format.usefncache config option (default is true) This enables for example "hg clone --config format.usefncache=0" which creates a non-fncache repository, which then can be read by Mercurial versions before 7946503ec76e.
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 24 Oct 2008 10:31:51 +0200
parents 9f0e52e1df77
children b9bf36905b55
comparison
equal deleted inserted replaced
7233:9f0e52e1df77 7234:ae70fe6143fc
33 os.mkdir(self.path) 33 os.mkdir(self.path)
34 requirements = ["revlogv1"] 34 requirements = ["revlogv1"]
35 if parentui.configbool('format', 'usestore', True): 35 if parentui.configbool('format', 'usestore', True):
36 os.mkdir(os.path.join(self.path, "store")) 36 os.mkdir(os.path.join(self.path, "store"))
37 requirements.append("store") 37 requirements.append("store")
38 requirements.append("fncache") 38 if parentui.configbool('format', 'usefncache', True):
39 requirements.append("fncache")
39 # create an invalid changelog 40 # create an invalid changelog
40 self.opener("00changelog.i", "a").write( 41 self.opener("00changelog.i", "a").write(
41 '\0\0\0\2' # represents revlogv2 42 '\0\0\0\2' # represents revlogv2
42 ' dummy changelog to prevent using the old repo layout' 43 ' dummy changelog to prevent using the old repo layout'
43 ) 44 )