tags: remove scary message about corrupt tags cache
Caches should be transparent. If a cache is damaged, it should
silently be rebuilt, much like if it were invalid. No one seems to
have ever hit this in the wild.
--- a/mercurial/tags.py Sun Mar 29 19:15:04 2015 +0200
+++ b/mercurial/tags.py Tue Mar 31 08:04:42 2015 -0500
@@ -272,7 +272,6 @@
cachefnode[headnode] = fnode
except Exception:
# corruption of the tags cache, just recompute it
- ui.warn(_('.hg/cache/tags is corrupt, rebuilding it\n'))
cacheheads = []
cacherevs = []
cachefnode = {}
--- a/tests/test-tags.t Sun Mar 29 19:15:04 2015 +0200
+++ b/tests/test-tags.t Tue Mar 31 08:04:42 2015 -0500
@@ -38,7 +38,6 @@
$ printf 'a b' > .hg/cache/tags
$ hg identify
- .hg/cache/tags is corrupt, rebuilding it
acb14030fe0a tip
$ cacheexists
tag cache exists