mercurial/localrepo.py
changeset 4163 fe41d9a186ab
parent 4161 939de0d20a67
child 4166 c0271aba6abe
--- a/mercurial/localrepo.py	Wed Mar 07 15:26:03 2007 -0300
+++ b/mercurial/localrepo.py	Thu Mar 08 16:12:52 2007 -0600
@@ -41,8 +41,11 @@
                 if not os.path.exists(path):
                     os.mkdir(path)
                 os.mkdir(self.path)
-                os.mkdir(os.path.join(self.path, "store"))
-                requirements = ("revlogv1", "store")
+                if parentui.config('format', 'usestore', 1):
+                    os.mkdir(os.path.join(self.path, "store"))
+                    requirements = ("revlogv1", "store")
+                else:
+                    requirements = ("revlogv1")
                 reqfile = self.opener("requires", "w")
                 for r in requirements:
                     reqfile.write("%s\n" % r)