changeset 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 fb5f34bb3867
children 15baed3f24ee
files mercurial/branchmap.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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