diff -r d23834b871ac -r 76effa770ff9 mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Nov 06 14:08:25 2014 -0800 +++ b/mercurial/localrepo.py Thu Nov 06 14:20:05 2014 -0800 @@ -316,6 +316,9 @@ chunkcachesize = self.ui.configint('format', 'chunkcachesize') if chunkcachesize is not None: self.sopener.options['chunkcachesize'] = chunkcachesize + maxchainlen = self.ui.configint('revlog', 'maxchainlen') + if maxchainlen is not None: + self.sopener.options['maxchainlen'] = maxchainlen def _writerequirements(self): reqfile = self.opener("requires", "w")