diff tests/test-revlog-raw.py.out @ 31751:2133437dad17

revlog: fix _cache usage in revision() As documented at revlog.__init__, revlog._cache stores raw text. The current read and write usage of "_cache" in revlog.revision lacks of raw=True check. This patch fixes that by adding check about raw, and storing rawtext explicitly in _cache. Note: it may slow down cache hit code path when raw=False and flags=0. That performance issue will be fixed in a later patch. test-revlog-raw now points us to a new problem.
author Jun Wu <quark@fb.com>
date Thu, 30 Mar 2017 15:34:08 -0700
parents 985de02b5b9d
children f424fb180fea
line wrap: on
line diff
--- a/tests/test-revlog-raw.py.out	Thu Mar 30 14:56:09 2017 -0700
+++ b/tests/test-revlog-raw.py.out	Thu Mar 30 15:34:08 2017 -0700
@@ -1,1 +1,1 @@
-abort: rev 5: wrong text
+abort: crashed: integrity check failed on _testrevlog.i:11