Mercurial > hg
changeset 43151:36e386dbbd30
fuzz: exercise a little more revlog code
Differential Revision: https://phab.mercurial-scm.org/D7032
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 09 Oct 2019 20:49:23 -0700 |
parents | 7ff40418c6bf |
children | b37dd26935ee |
files | contrib/fuzz/revlog.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/fuzz/revlog.cc Wed Oct 09 20:48:12 2019 -0700 +++ b/contrib/fuzz/revlog.cc Wed Oct 09 20:49:23 2019 -0700 @@ -20,10 +20,15 @@ try: index, cache = parse_index2(data, inline) index.slicechunktodensity(list(range(len(index))), 0.5, 262144) + index.stats() + index.findsnapshots({}, 0) + 10 in index for rev in range(len(index)): + index.reachableroots(0, [len(index)-1], [rev]) node = index[rev][7] partial = index.shortest(node) index.partialmatch(node[:partial]) + index.deltachain(rev, None, True) except Exception as e: pass # uncomment this print if you're editing this Python code