mercurial/branchmap.py
changeset 21788 c20843aee8a4
parent 21031 05cfcecb3aef
child 21789 15baed3f24ee
equal deleted inserted replaced
21787:fb5f34bb3867 21788:c20843aee8a4
   219                                             encoding.fromlocal(label)))
   219                                             encoding.fromlocal(label)))
   220             f.close()
   220             f.close()
   221             repo.ui.log('branchcache',
   221             repo.ui.log('branchcache',
   222                         'wrote %s branch cache with %d labels and %d nodes\n',
   222                         'wrote %s branch cache with %d labels and %d nodes\n',
   223                         repo.filtername, len(self), nodecount)
   223                         repo.filtername, len(self), nodecount)
   224         except (IOError, OSError, util.Abort):
   224         except (IOError, OSError, util.Abort), inst:
       
   225             repo.ui.debug("couldn't write branch cache: %s\n" % inst)
   225             # Abort may be raise by read only opener
   226             # Abort may be raise by read only opener
   226             pass
   227             pass
   227 
   228 
   228     def update(self, repo, revgen):
   229     def update(self, repo, revgen):
   229         """Given a branchhead cache, self, that may have extra nodes or be
   230         """Given a branchhead cache, self, that may have extra nodes or be