mercurial/branchmap.py
changeset 51492 2e8a88e5809f
parent 51491 dd5b5f99940d
child 51493 82c1a388e86a
equal deleted inserted replaced
51491:dd5b5f99940d 51492:2e8a88e5809f
    83         bcache = self._per_filter[repo.filtername]
    83         bcache = self._per_filter[repo.filtername]
    84         assert bcache._filtername == repo.filtername, (
    84         assert bcache._filtername == repo.filtername, (
    85             bcache._filtername,
    85             bcache._filtername,
    86             repo.filtername,
    86             repo.filtername,
    87         )
    87         )
    88         bcache.write(repo)
    88         if bcache._dirty:
       
    89             bcache.write(repo)
    89 
    90 
    90     def updatecache(self, repo):
    91     def updatecache(self, repo):
    91         """Update the cache for the given filtered view on a repository"""
    92         """Update the cache for the given filtered view on a repository"""
    92         # This can trigger updates for the caches for subsets of the filtered
    93         # This can trigger updates for the caches for subsets of the filtered
    93         # view, e.g. when there is no cache for this filtered view or the cache
    94         # view, e.g. when there is no cache for this filtered view or the cache