Mercurial > hg > mercurial-crew
diff mercurial/tags.py @ 14020:98f79a5c3086
tags: catch more corruption during cache parsing (issue2779)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 26 Apr 2011 10:51:19 -0500 |
parents | 4e33ef68b1f8 |
children | 0e6f622f31ca |
line wrap: on
line diff
--- a/mercurial/tags.py +++ b/mercurial/tags.py @@ -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 = []