changeset 14501:78fe305f5965 stable

tags: catch more corruption during cache parsing (issue2779)
author Matt Mackall <mpm@selenic.com>
date Tue, 26 Apr 2011 10:51:19 -0500
parents e880433a2e00
children deb82fdda94e
files mercurial/tags.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/tags.py	Mon Apr 11 21:44:22 2011 +0300
+++ b/mercurial/tags.py	Tue Apr 26 10:51:19 2011 -0500
@@ -185,7 +185,7 @@
                 if len(line) == 3:
                     fnode = bin(line[2])
                     cachefnode[headnode] = fnode
-        except (ValueError, TypeError):
+        except Exception:
             # corruption of the tags cache, just recompute it
             ui.warn(_('.hg/cache/tags is corrupt, rebuilding it\n'))
             cacheheads = []