D5641: fuzz: exercise more of the revlog API
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 23 00:46:08 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGebe51a2e75be: fuzz: exercise more of the revlog API (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5641?vs=13337&id=13354
REVISION DETAIL
https://phab.mercurial-scm.org/D5641
AFFECTED FILES
contrib/fuzz/revlog.cc
CHANGE DETAILS
diff --git a/contrib/fuzz/revlog.cc b/contrib/fuzz/revlog.cc
--- a/contrib/fuzz/revlog.cc
+++ b/contrib/fuzz/revlog.cc
@@ -19,6 +19,11 @@
for inline in (True, False):
try:
index, cache = parse_index2(data, inline)
+ index.slicechunktodensity(list(range(len(index))), 0.5, 262144)
+ for rev in range(len(index)):
+ node = index[rev][7]
+ partial = index.shortest(node)
+ index.partialmatch(node[:partial])
except Exception as e:
pass
# uncomment this print if you're editing this Python code
To: durin42, #hg-reviewers
Cc: martinvonz, mercurial-devel
More information about the Mercurial-devel
mailing list