Repair hg : invalid branchheads cache (visible): tip differs

Matt Mackall mpm at
Thu Jun 19 18:30:48 CDT 2014

On Thu, 2014-06-19 at 18:26 +0000, Jensen, Aaron wrote:
> Whenever I run hg branches with the debug switch
>     > hg branches --debug
> I get this message from stderr along with branch information:
>     hg : invalid branchheads cache (visible): tip differs
> When I run without `--debug`, no stderr message, just branch info.
> Is there anyway of repairing this to make this message go away? Google didn't turn up anything, neither did a scan down Mercurial's debug commands.

This message says:

"Hey, we looked at the branch cache and it was built when the tip was
X.. but we've never heard of X. So I guess we can't use that cache and
have to start over. No big deal, I wouldn't mention it except you seemed

If you get it repeatedly, it probably means that there are problems
overwriting the cache when it's rebuilt. This is a natural occurrence on
multi-user systems, so it doesn't generally warrant a message either.
But we should probably add a debug-level message for that.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list