atomicfile - should it use transports?

John Arbash Meinel john at arbash-meinel.com
Fri Jan 20 22:31:56 GMT 2006


Robert Collins wrote:
> 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
> 

I figured whatever file-like object would have it's 'close' that commits
the object. But yes, you could do this by returning a Transport styled
AtomicFile.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060120/1c66c6a7/attachment.pgp 


More information about the bazaar mailing list