[PATCH] localrepo: introduce persistent caching of revset revision's branch names

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Oct 15 02:01:46 CDT 2014



On 10/14/2014 09:53 PM, Gregory Szorc wrote:
> Append only is a nice ideal and just that: an ideal. Things like
> transaction rollbacks are effectively strips. And transaction rollbacks
> can happen when e.g. a server-side hook rejects a push. And if that hook
> (or a hook that ran before) accesses branch data and causes a cache
> update that would trigger invalidation on rollback, the next
> unsuspecting user triggers a fresh cache rebuild and experiences extreme
> latency (if the repo is moderately sized).

Note that we have plan (and will soon be working on) having this cache 
this cache transactional and gracefully not impacted by aborted transaction.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list