Mercurial > public > mercurial-scm > evolve
diff hgext3rd/topic/topicmap.py @ 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 | 85390446f8c1 |
children | be0bc9dcb930 |
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):