Mercurial > hg
changeset 23256:1c11393d5dfb
localrepo: rename revlog.maxchainlen to format.maxchainlen
This is more consistent with other option names, as spotted by Pierre-Yves. Thanks!
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 11 Nov 2014 10:35:06 -0500 |
parents | 76effa770ff9 |
children | 37c57a7cf160 |
files | mercurial/localrepo.py tests/test-debugcommands.t |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Nov 06 14:20:05 2014 -0800 +++ b/mercurial/localrepo.py Tue Nov 11 10:35:06 2014 -0500 @@ -316,7 +316,7 @@ chunkcachesize = self.ui.configint('format', 'chunkcachesize') if chunkcachesize is not None: self.sopener.options['chunkcachesize'] = chunkcachesize - maxchainlen = self.ui.configint('revlog', 'maxchainlen') + maxchainlen = self.ui.configint('format', 'maxchainlen') if maxchainlen is not None: self.sopener.options['maxchainlen'] = maxchainlen
--- a/tests/test-debugcommands.t Thu Nov 06 14:20:05 2014 -0800 +++ b/tests/test-debugcommands.t Tue Nov 11 10:35:06 2014 -0500 @@ -26,25 +26,25 @@ Test max chain len $ cat >> $HGRCPATH << EOF - > [revlog] + > [format] > maxchainlen=4 > EOF - $ echo "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a + $ printf "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a $ hg ci -m a - $ echo "b\n" >> a + $ printf "b\n" >> a $ hg ci -m a - $ echo "c\n" >> a + $ printf "c\n" >> a $ hg ci -m a - $ echo "d\n" >> a + $ printf "d\n" >> a $ hg ci -m a - $ echo "e\n" >> a + $ printf "e\n" >> a $ hg ci -m a - $ echo "f\n" >> a + $ printf "f\n" >> a $ hg ci -m a - $ echo 'g\n' >> a + $ printf 'g\n' >> a $ hg ci -m a - $ echo 'h\n' >> a + $ printf 'h\n' >> a $ hg ci -m a $ hg debugrevlog -d a # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen