atomicfile - should it use transports?
Robert Collins
robertc at robertcollins.net
Fri Jan 20 22:30:30 GMT 2006
On Fri, 2006-01-20 at 16:17 -0600, John Arbash Meinel wrote:
>
> The idea is that 'transport.put()' is considered atomic. So for the
> LocalTransport it uses AtomicFile, for sftp it puts to a temporary
> file
> and uses fancy_rename.
>
> You can invert the dependencies, but that is the design of the system.
Theres a branch out there that changes put and append to return file
objects - at which point atomic file for 'put' operations becomes
useful.
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/20060121/f961e323/attachment.pgp
More information about the bazaar
mailing list