Repair hg : invalid branchheads cache (visible): tip differs
Jensen, Aaron
ajensen at webmd.net
Fri Jan 8 01:37:20 UTC 2016
> 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 extra-curious."
>
> 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.
For posterity's sake, I fixed this by deleting my repository's .hg\cache\branchheads-* files. The next time I ran `hg branches`, Mercurial re-created these files.
More information about the Mercurial
mailing list