# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1415720106 18000
#      Tue Nov 11 10:35:06 2014 -0500
# Node ID 1c11393d5dfba293090f0f26a249d7dd953df2b3
# Parent  76effa770ff9b2044ff28d92a7bf249395e99c1e
localrepo: rename revlog.maxchainlen to format.maxchainlen

This is more consistent with other option names, as spotted by Pierre-Yves. Thanks!

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -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
 
diff --git a/tests/test-debugcommands.t b/tests/test-debugcommands.t
--- a/tests/test-debugcommands.t
+++ b/tests/test-debugcommands.t
@@ -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