##// END OF EJS Templates
localrepo: rename revlog.maxchainlen to format.maxchainlen...
Augie Fackler -
r23256:1c11393d default
parent child Browse files
Show More
@@ -316,7 +316,7 b' class localrepository(object):'
316 chunkcachesize = self.ui.configint('format', 'chunkcachesize')
316 chunkcachesize = self.ui.configint('format', 'chunkcachesize')
317 if chunkcachesize is not None:
317 if chunkcachesize is not None:
318 self.sopener.options['chunkcachesize'] = chunkcachesize
318 self.sopener.options['chunkcachesize'] = chunkcachesize
319 maxchainlen = self.ui.configint('revlog', 'maxchainlen')
319 maxchainlen = self.ui.configint('format', 'maxchainlen')
320 if maxchainlen is not None:
320 if maxchainlen is not None:
321 self.sopener.options['maxchainlen'] = maxchainlen
321 self.sopener.options['maxchainlen'] = maxchainlen
322
322
@@ -26,25 +26,25 b''
26
26
27 Test max chain len
27 Test max chain len
28 $ cat >> $HGRCPATH << EOF
28 $ cat >> $HGRCPATH << EOF
29 > [revlog]
29 > [format]
30 > maxchainlen=4
30 > maxchainlen=4
31 > EOF
31 > EOF
32
32
33 $ echo "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a
33 $ printf "This test checks if maxchainlen config value is respected also it can serve as basic test for debugrevlog -d <file>.\n" >> a
34 $ hg ci -m a
34 $ hg ci -m a
35 $ echo "b\n" >> a
35 $ printf "b\n" >> a
36 $ hg ci -m a
36 $ hg ci -m a
37 $ echo "c\n" >> a
37 $ printf "c\n" >> a
38 $ hg ci -m a
38 $ hg ci -m a
39 $ echo "d\n" >> a
39 $ printf "d\n" >> a
40 $ hg ci -m a
40 $ hg ci -m a
41 $ echo "e\n" >> a
41 $ printf "e\n" >> a
42 $ hg ci -m a
42 $ hg ci -m a
43 $ echo "f\n" >> a
43 $ printf "f\n" >> a
44 $ hg ci -m a
44 $ hg ci -m a
45 $ echo 'g\n' >> a
45 $ printf 'g\n' >> a
46 $ hg ci -m a
46 $ hg ci -m a
47 $ echo 'h\n' >> a
47 $ printf 'h\n' >> a
48 $ hg ci -m a
48 $ hg ci -m a
49 $ hg debugrevlog -d a
49 $ hg debugrevlog -d a
50 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen
50 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen
General Comments 0
You need to be logged in to leave comments. Login now