obshashrange: clear in-memory cache alongside the sqlite one
Clearing on disk data in nice, but we also need to remove in memory one or we'll
get incorrect results.
--- a/hgext3rd/evolve/obsdiscovery.py Fri Aug 17 01:04:49 2018 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py Fri Aug 17 12:06:43 2018 +0200
@@ -475,9 +475,12 @@
# so we need to reset more broadly than we would like.
if repo.stablerange._con is None:
con.execute(_reset)
+ self._data.clear()
else:
ranges = repo.stablerange.contains(repo, affected)
con.executemany(_delete, ranges)
+ for r in ranges:
+ self._data.pop(r, None)
# rewarm key revisions
#