Mercurial > hg-stable
changeset 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 | 7488a1f14e3c |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Oct 21 17:00:35 2008 +0200 +++ b/mercurial/localrepo.py Fri Oct 24 10:31:51 2008 +0200 @@ -35,7 +35,8 @@ if parentui.configbool('format', 'usestore', True): os.mkdir(os.path.join(self.path, "store")) requirements.append("store") - requirements.append("fncache") + if parentui.configbool('format', 'usefncache', True): + requirements.append("fncache") # create an invalid changelog self.opener("00changelog.i", "a").write( '\0\0\0\2' # represents revlogv2