##// END OF EJS Templates
Allow disabling store format to work with absurdly long filenames
Matt Mackall -
r4163:fe41d9a1 default
parent child Browse files
Show More
@@ -215,6 +215,15 b' extensions::'
215 # (this extension will get loaded from the file specified)
215 # (this extension will get loaded from the file specified)
216 myfeature = ~/.hgext/myfeature.py
216 myfeature = ~/.hgext/myfeature.py
217
217
218 format::
219
220 usestore;;
221 Enable or disable the "store" repository format which improves
222 compatibility with systems that fold case or otherwise mangle
223 filenames. Enabled by default. Disabling this option will allow
224 you to store longer filenames in some situations at the expense of
225 compatibility.
226
218 hooks::
227 hooks::
219 Commands or Python functions that get automatically executed by
228 Commands or Python functions that get automatically executed by
220 various actions such as starting or finishing a commit. Multiple
229 various actions such as starting or finishing a commit. Multiple
@@ -41,8 +41,11 b' class localrepository(repo.repository):'
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)
General Comments 0
You need to be logged in to leave comments. Login now