# HG changeset patch # User Matt Mackall # Date 1303833079 18000 # Node ID 98f79a5c308665e1ce1b020bb66ed37f47f102e6 # Parent fbbd5f91d5e17b33ba6f87d67504298c7fa15909 tags: catch more corruption during cache parsing (issue2779) diff -r fbbd5f91d5e1 -r 98f79a5c3086 mercurial/tags.py --- a/mercurial/tags.py Mon Apr 25 17:01:34 2011 -0500 +++ 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 = []