equal
deleted
inserted
replaced
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 |