##// 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 316 chunkcachesize = self.ui.configint('format', 'chunkcachesize')
317 317 if chunkcachesize is not None:
318 318 self.sopener.options['chunkcachesize'] = chunkcachesize
319 maxchainlen = self.ui.configint('revlog', 'maxchainlen')
319 maxchainlen = self.ui.configint('format', 'maxchainlen')
320 320 if maxchainlen is not None:
321 321 self.sopener.options['maxchainlen'] = maxchainlen
322 322
@@ -26,25 +26,25 b''
26 26
27 27 Test max chain len
28 28 $ cat >> $HGRCPATH << EOF
29 > [revlog]
29 > [format]
30 30 > maxchainlen=4
31 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 34 $ hg ci -m a
35 $ echo "b\n" >> a
35 $ printf "b\n" >> a
36 36 $ hg ci -m a
37 $ echo "c\n" >> a
37 $ printf "c\n" >> a
38 38 $ hg ci -m a
39 $ echo "d\n" >> a
39 $ printf "d\n" >> a
40 40 $ hg ci -m a
41 $ echo "e\n" >> a
41 $ printf "e\n" >> a
42 42 $ hg ci -m a
43 $ echo "f\n" >> a
43 $ printf "f\n" >> a
44 44 $ hg ci -m a
45 $ echo 'g\n' >> a
45 $ printf 'g\n' >> a
46 46 $ hg ci -m a
47 $ echo 'h\n' >> a
47 $ printf 'h\n' >> a
48 48 $ hg ci -m a
49 49 $ hg debugrevlog -d a
50 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