# HG changeset patch # User Matt Mackall # Date 1303833079 18000 # Node ID 78fe305f5965e7ed8327e5ca9a2fba2a74b33564 # Parent e880433a2e00dcb16aacc10c6beb84cbfa47c672 tags: catch more corruption during cache parsing (issue2779) diff -r e880433a2e00 -r 78fe305f5965 mercurial/tags.py --- 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 = []