[PATCH 5 of 6 v2] bookmarks: make _readactive safe when readlines raises ENOENT
Augie Fackler
raf at durin42.com
Wed Dec 2 13:21:27 CST 2015
> On Dec 2, 2015, at 1:56 PM, Pierre-Yves David <pierre-yves.david at ens-lyon.org> wrote:
>
>
>
> On 12/02/2015 08:58 AM, Augie Fackler wrote:
>> # HG changeset patch
>> # User Augie Fackler <augie at google.com>
>> # Date 1448993285 18000
>> # Tue Dec 01 13:08:05 2015 -0500
>> # Node ID 6f3aa7041edf0ab6a4c891ebbf566b4c94523847
>> # Parent 4600ce9ad6ec0bd96c34d28b7c61ebe4926f5c2e
>> bookmarks: make _readactive safe when readlines raises ENOENT
>>
>> When reading over static http, the file isn't actually opened until
>> the readlines() call, so we have to check for ENOENT IOErrors here
>> too. This is necessary so that we can use the bmstore everywhere for
>> managing the active bookmark, which will be true in the next change.
>
> Urg, I'm pretty sure this is breaking other stuff.
You mean this failure mode of files accessed over static-http is breaking other things? Seems likely.,
> Can you at least document the reason on this hack inline?
Can do.
> (should we fix this at the httprepo level?)
There’s not really a good way to do that since we sometimes open files without immediately reading them.
>
> --
> Pierre-Yves David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151202/bc69de8e/attachment.pgp>
More information about the Mercurial-devel
mailing list