topiccache: directly instantiate a topiccache object when reading
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 28 Mar 2016 00:47:14 -0700
changeset 1927 cf33ba7fbf4b
parent 1926 85db8af6b5b5
child 1928 be0bc9dcb930
topiccache: directly instantiate a topiccache object when reading There is no need to rely on a temporary monkey patching.
hgext3rd/topic/topicmap.py
--- 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):