[PATCH] init: changed creation order of 00changelog and requires files (issue3960)

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Mar 17 21:28:21 CDT 2014


ccing Lucas with an email address that he can actually reach

On 03/17/2014 07:26 PM, Siddharth Agarwal wrote:
> On 03/14/2014 04:52 PM, Lucas Moscovicz wrote:
>> Also, to solve the race problem that came up where an old client commited
>> something to the repo before both the requires and the 00changelog
>> file were
>> created and then the 00changelog file would overwrite that commit, the
>> initial
>> name of the .hg folder was changed to .hgtmp, getting renamed back to
>> .hg once
>> the requires and 00changelog files are created leaving no point in
>> time where
>> an old client can commit to the new styled repo.
>
> This bit should be in a followup patch.


More information about the Mercurial-devel mailing list