[PATCH] AtomicFile on win32 throws if target file doesn't exist

John A Meinel john at arbash-meinel.com
Wed May 25 06:45:49 BST 2005


John A Meinel wrote:

> Right now AtomicFile leaves a bogus file if it is not committed or
> aborted. The attached patch has it close on deconstruct (which means
> abort if file is not already closed).
>
> John
> =:->

Attached is another patch. On win32 AtomicFile removes the file before
rename, but sometimes the file doesn't exist, throwing an OSError, this
traps for it.

John
=:->

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: atomic-file-commit.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20050525/72891636/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050525/72891636/attachment.pgp 


More information about the bazaar mailing list