comparison mercurial/branchmap.py @ 21788:c20843aee8a4

branch: add debug message for branch cache write failure
author Matt Mackall <mpm@selenic.com>
date Mon, 23 Jun 2014 13:46:42 -0500
parents 05cfcecb3aef
children 15baed3f24ee
comparison
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