[PATCH 2 of 2] tags: detect and repair corrupt tags portion of tags cache
mpm at selenic.com
Tue Mar 31 08:29:55 CDT 2015
On Sun, 2015-03-29 at 17:10 -0700, Gregory Szorc wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1427672229 25200
> # Sun Mar 29 16:37:09 2015 -0700
> # Node ID 2cb6b78cf818a082ee9a2518968f88c1819efed0
> # Parent 2e21d3312350ce63785cda82526c951211e76bab
> tags: detect and repair corrupt tags portion of tags cache
> As part of developing a tags cache patch, I inadvertently introduced
> malformed tags entries in a tags cache file. I was surprised to learn
> that Mercurial would let this malformed data linger and would print
> warnings about it until the tags cache was updated.
> This patch changes the behavior so in invalid tags cache is
> proactively repaired. This makes the end-user experience better, as it
> prevents Mercurial from getting in a possibly endless loop of warning
> about a malformed tags cache.
Seems sensible, but see my previous note about how we should be silent
when doing this.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel