branch: add debug message for branch cache write failure
authorMatt Mackall <mpm@selenic.com>
Mon, 23 Jun 2014 13:46:42 -0500
changeset 21788 c20843aee8a4
parent 21787 fb5f34bb3867
child 21789 15baed3f24ee
branch: add debug message for branch cache write failure
mercurial/branchmap.py
--- a/mercurial/branchmap.py	Sun May 04 22:36:07 2014 -0700
+++ b/mercurial/branchmap.py	Mon Jun 23 13:46:42 2014 -0500
@@ -221,7 +221,8 @@
             repo.ui.log('branchcache',
                         'wrote %s branch cache with %d labels and %d nodes\n',
                         repo.filtername, len(self), nodecount)
-        except (IOError, OSError, util.Abort):
+        except (IOError, OSError, util.Abort), inst:
+            repo.ui.debug("couldn't write branch cache: %s\n" % inst)
             # Abort may be raise by read only opener
             pass