Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 24571:919f8ce040be
manifestv2: set requires at repo creation time
While it should be safe to switch to the new manifest format on an
existing repo, let's keep it simple for now and make the configuration
have any effect only at repo creation time. If the configuration is
enabled then (at repo creation), we add an entry to requires and read
that instead of the configuration from then on.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 31 Mar 2015 22:45:45 -0700 |
parents | a2292da6d821 |
children | b83679eb5f86 |
line wrap: on
line diff
--- a/mercurial/manifest.py Tue Mar 31 15:06:55 2015 -0700 +++ b/mercurial/manifest.py Tue Mar 31 22:45:45 2015 -0700 @@ -605,7 +605,7 @@ if opts is not None: cachesize = opts.get('manifestcachesize', cachesize) usetreemanifest = opts.get('usetreemanifest', usetreemanifest) - usemanifestv2 = opts.get('usemanifestv2', usemanifestv2) + usemanifestv2 = opts.get('manifestv2', usemanifestv2) self._mancache = util.lrucachedict(cachesize) revlog.revlog.__init__(self, opener, "00manifest.i") self._usetreemanifest = usetreemanifest