# HG changeset patch # User Pierre-Yves David # Date 1357072033 -3600 # Node ID 46ed5226503a3f53194773a57f2e46ba315d6518 # Parent 4df8716d32f188caae4da08790afaedb2b383dfc branchmap: report filtername when read fails Now that we can have multiple one, we need to know which filecache failed to be read from disk. diff -r 4df8716d32f1 -r 46ed5226503a mercurial/branchmap.py --- a/mercurial/branchmap.py Mon Dec 24 03:06:03 2012 +0100 +++ b/mercurial/branchmap.py Tue Jan 01 21:27:13 2013 +0100 @@ -48,7 +48,11 @@ raise except Exception, inst: if repo.ui.debugflag: - repo.ui.warn(('invalid branchheads cache: %s\n') % inst) + msg = 'invalid branchheads cache' + if repo.filtername is not None: + msg += ' (%s)' % repo.filtername + msg += ': %s\n' + repo.ui.warn(msg % inst) partial = branchcache() return partial