topiccache: directly instantiate a topiccache object when reading
There is no need to rely on a temporary monkey patching.
--- a/hgext3rd/topic/topicmap.py Tue Mar 22 15:29:05 2016 -0700
+++ b/hgext3rd/topic/topicmap.py Mon Mar 28 00:47:14 2016 -0700
@@ -167,7 +167,7 @@
last, lrev = cachekey[:2]
last, lrev = bin(last), int(lrev)
filteredhash = bin(cachekey[2]) # [CHANGE] unconditional filteredhash
- partial = branchcache(tipnode=last, tiprev=lrev,
+ partial = topiccache(tipnode=last, tiprev=lrev,
filteredhash=filteredhash)
partial.phaseshash = bin(cachekey[3]) # [CHANGE] read phaseshash
if not partial.validfor(repo):