mercurial/branchmap.py
changeset 51531 4188a0570ba1
parent 51530 9007387a227c
child 51547 0ddc34330d41
equal deleted inserted replaced
51530:9007387a227c 51531:4188a0570ba1
   166 
   166 
   167     def write_delayed(self, repo):
   167     def write_delayed(self, repo):
   168         unfi = repo.unfiltered()
   168         unfi = repo.unfiltered()
   169         for filtername, cache in self._per_filter.items():
   169         for filtername, cache in self._per_filter.items():
   170             if cache._delayed:
   170             if cache._delayed:
   171                 repo = unfi.filtered(filtername)
   171                 if filtername is None:
       
   172                     repo = unfi
       
   173                 else:
       
   174                     repo = unfi.filtered(filtername)
   172                 cache.write(repo)
   175                 cache.write(repo)
   173 
   176 
   174 
   177 
   175 def _unknownnode(node):
   178 def _unknownnode(node):
   176     """raises ValueError when branchcache found a node which does not exists"""
   179     """raises ValueError when branchcache found a node which does not exists"""