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