changeset 1927:cf33ba7fbf4b

topiccache: directly instantiate a topiccache object when reading There is no need to rely on a temporary monkey patching.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 28 Mar 2016 00:47:14 -0700
parents 85db8af6b5b5
children be0bc9dcb930
files hgext3rd/topic/topicmap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):