tags: remove scary message about corrupt tags cache
authorMatt Mackall <mpm@selenic.com>
Tue, 31 Mar 2015 08:04:42 -0500
changeset 24532 f5de208a635c
parent 24531 18ee81b37928
child 24533 888dcab69ca3
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.
mercurial/tags.py
tests/test-tags.t
--- 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