[PATCH] transaction: fix uncaught ENOENT on Windows (issue1724)
Henrik Stuart
hg at hstuart.dk
Tue Jul 7 12:32:10 CDT 2009
Henrik Stuart wrote:
> Matt Mackall wrote:
>> On Tue, 2009-07-07 at 12:47 +0000, Henrik Stuart wrote:
>>> # HG changeset patch
>>> # User Henrik Stuart <henrik.stuart at edlund.dk>
>>> # Date 1246970339 -7200
>>> # Node ID 42c32267d7c4b9e59e46d301f9310c0a323151e4
>>> # Parent d4d4da54ab05c24596c3e98acbd7f052e443b2c1
>>> transaction: fix uncaught ENOENT on Windows (issue1724)
>>>
>>> The new posixfile raises an IOError where transaction expects an
>>> OSError. The transaction code now checks for both issues as posixfile
>>> is also used in places where an IOError is expected.
>> Odd, ENOENT's an IOError on Unix too.
>
> Perhaps it only needs to catch IOError, guess that merits some
> investigation.
Only an IOError will ever be raised and thus OSError does no good at
all, as far as I can ascertain. I'll be sending a revised patch in a few
moments.
--
Kind regards,
Henrik Stuart
More information about the Mercurial-devel
mailing list