[PATCH 4 of 6] histedit: lock repo while editing

Mads Kiilerich mads at kiilerich.com
Wed Apr 17 02:19:52 UTC 2013


On 04/17/2013 04:11 AM, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <madski at unity3d.com>
> # Date 1366162894 -7200
> # Node ID 32a7b55e7d9f4052b8a4cfeccc3c7298e122fa85
> # Parent  50b42260018a4739637cde911f42c04ecd402c88
> histedit: lock repo while editing
>
> Just adding locking introduces an 'invalid branchheads cache' message. That
> seems like a strange error elsewhere.

Understanding this issue is probably more important than adding the 
extra locking.

(We have several places where commands essentially do 
read-check-lock-write-unlock. Commands are thus not fully reliable ... 
but adding more locks makes this and concurrent commands more reliable.)

/Mads



More information about the Mercurial-devel mailing list