Proposal for detecting history rewriting on shared repos

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Feb 12 18:24:45 CST 2014



On 02/12/2014 04:20 PM, Gregory Szorc wrote:
> The share extension and workflow is very fragile. If rewriting occurs on
> the original repository, there's a good chance shared clones of that
> repo will get corrupted. While there is a giant warning in the output of
> `hg help share` to warn you about this, Mercurial currently offers
> little to no assistance to detect and recover from this.

[…]

> Thoughts?

The branch cache have logic to detect non-append only operation on the 
view. The same kind of logic should be applicable here.

I know that the current cache key generated by branchcache have some 
weakness for some corner case. If you hit them, feel free to improve it.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list