--- a/src/topic/__init__.py Mon Mar 14 00:15:54 2016 +0000
+++ b/src/topic/__init__.py Sun Mar 13 23:44:04 2016 +0000
@@ -69,10 +69,12 @@
"""use awful monkey patching to update the topic cache"""
oldbranchcache = branchmap.branchcache
oldfilename = branchmap._filename
+ oldread = branchmap.read
oldcaches = getattr(repo, '_branchcaches', {})
try:
branchmap.branchcache = topicmap.topiccache
branchmap._filename = topicmap._filename
+ branchmap.read = topicmap.readtopicmap
repo._branchcaches = getattr(repo, '_topiccaches', {})
yield
repo._topiccaches = repo._branchcaches
@@ -80,6 +82,7 @@
repo._branchcaches = oldcaches
branchmap.branchcache = oldbranchcache
branchmap._filename = oldfilename
+ branchmap.read = oldread
def cgapply(orig, repo, *args, **kwargs):
with usetopicmap(repo):