hgext3rd/topic/topicmap.py
changeset 2655 417490bdf28a
parent 2653 13313d0cab71
child 3397 f7129e3d5a38
equal deleted inserted replaced
2654:320f4faef18c 2655:417490bdf28a
   101         pass
   101         pass
   102     branchmap.branchcache = topiccache
   102     branchmap.branchcache = topiccache
   103     extensions.wrapfunction(branchmap, 'updatecache', _wrapupdatebmcache)
   103     extensions.wrapfunction(branchmap, 'updatecache', _wrapupdatebmcache)
   104 
   104 
   105 def _wrapupdatebmcache(orig, repo):
   105 def _wrapupdatebmcache(orig, repo):
   106     previous = repo._autobranchmaptopic
   106     previous = getattr(repo, '_autobranchmaptopic', False)
   107     try:
   107     try:
   108         repo._autobranchmaptopic = False
   108         repo._autobranchmaptopic = False
   109         return orig(repo)
   109         return orig(repo)
   110     finally:
   110     finally:
   111         repo._autobranchmaptopic = previous
   111         repo._autobranchmaptopic = previous