comparison mercurial/localrepo.py @ 4163:fe41d9a186ab

Allow disabling store format to work with absurdly long filenames
author Matt Mackall <mpm@selenic.com>
date Thu, 08 Mar 2007 16:12:52 -0600
parents 939de0d20a67
children c0271aba6abe
comparison
equal deleted inserted replaced
4162:b2d9e553cdc8 4163:fe41d9a186ab
39 if not os.path.isdir(self.path): 39 if not os.path.isdir(self.path):
40 if create: 40 if create:
41 if not os.path.exists(path): 41 if not os.path.exists(path):
42 os.mkdir(path) 42 os.mkdir(path)
43 os.mkdir(self.path) 43 os.mkdir(self.path)
44 os.mkdir(os.path.join(self.path, "store")) 44 if parentui.config('format', 'usestore', 1):
45 requirements = ("revlogv1", "store") 45 os.mkdir(os.path.join(self.path, "store"))
46 requirements = ("revlogv1", "store")
47 else:
48 requirements = ("revlogv1")
46 reqfile = self.opener("requires", "w") 49 reqfile = self.opener("requires", "w")
47 for r in requirements: 50 for r in requirements:
48 reqfile.write("%s\n" % r) 51 reqfile.write("%s\n" % r)
49 reqfile.close() 52 reqfile.close()
50 # create an invalid changelog 53 # create an invalid changelog