Mercurial > hg
comparison tests/test-obsolete.t @ 23285:6cc1f388ac80
revlog: store fulltext when compressed delta is bigger than it
This is a very silly case and not particularly likely to happen in the wild,
but it turns out we can hit it in a couple of places. As we tune the storage
parameters we're likely to hit more such cases.
The affected test cases all have smaller revlogs now.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 11 Nov 2014 21:41:12 -0800 |
parents | 32dbd1294ea7 |
children | e7fcf58acd71 |
comparison
equal
deleted
inserted
replaced
23284:8d47c212b0dd | 23285:6cc1f388ac80 |
---|---|
88 2:245bde4270cd add original_c | 88 2:245bde4270cd add original_c |
89 $ hg debugrevlog -cd | 89 $ hg debugrevlog -cd |
90 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen | 90 # rev p1rev p2rev start end deltastart base p1 p2 rawsize totalsize compression heads chainlen |
91 0 -1 -1 0 59 0 0 0 0 58 58 0 1 0 | 91 0 -1 -1 0 59 0 0 0 0 58 58 0 1 0 |
92 1 0 -1 59 118 59 59 0 0 58 116 0 1 0 | 92 1 0 -1 59 118 59 59 0 0 58 116 0 1 0 |
93 2 1 -1 118 204 59 59 59 0 76 192 0 1 1 | 93 2 1 -1 118 193 118 118 59 0 76 192 0 1 0 |
94 3 1 -1 204 271 204 204 59 0 66 258 0 2 0 | 94 3 1 -1 193 260 193 193 59 0 66 258 0 2 0 |
95 $ hg debugobsolete | 95 $ hg debugobsolete |
96 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} | 96 245bde4270cd1072a27757984f9cda8ba26f08ca cdbce2fbb16313928851e97e0d85413f3f7eb77f C (Thu Jan 01 00:00:01 1970 -0002) {'user': 'test'} |
97 | 97 |
98 (check for version number of the obsstore) | 98 (check for version number of the obsstore) |
99 | 99 |