[RFC] race-free-rename ?

Robert Collins robertc at robertcollins.net
Tue Oct 16 07:54:24 BST 2007


So, for packs, I'd like a rename() which is guaranteed race-free. That
is, it should fail if it cannot atomically rename the source to the
destination (e.g. if the destination already exists and the fs does not
support rename-over-the-top).

thoughts? comments on how to expose it?

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071016/a4aaf9cc/attachment.pgp 


More information about the bazaar mailing list