Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/localrepo.py @ 4164: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 |
line wrap: on
line diff
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -41,8 +41,11 @@ class localrepository(repo.repository): 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)