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(' |
|
|
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 |
$ |
|
|
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 |
$ |
|
|
35 | $ printf "b\n" >> a | |
|
36 | 36 | $ hg ci -m a |
|
37 |
$ |
|
|
37 | $ printf "c\n" >> a | |
|
38 | 38 | $ hg ci -m a |
|
39 |
$ |
|
|
39 | $ printf "d\n" >> a | |
|
40 | 40 | $ hg ci -m a |
|
41 |
$ |
|
|
41 | $ printf "e\n" >> a | |
|
42 | 42 | $ hg ci -m a |
|
43 |
$ |
|
|
43 | $ printf "f\n" >> a | |
|
44 | 44 | $ hg ci -m a |
|
45 |
$ |
|
|
45 | $ printf 'g\n' >> a | |
|
46 | 46 | $ hg ci -m a |
|
47 |
$ |
|
|
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