mode support missed the append function?
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 10 22:05:09 GMT 2006
Robert Collins wrote:
> On Tue, 2006-01-10 at 07:37 -0600, John Arbash Meinel wrote:
>
>>Robert Collins wrote:
>>
>>>at least, there are no tests for transport.append(path, file, mode)
>>>
>>>..
>>>
>>>Rob
>>
>>If you look at transport/__init__.py There is no support for
>>.append(path, file, mode). Appending doesn't change the mode of a file
>>(normally).
>
>
> Appending can create files though. Append only stores will typically
> 'just append' rather than try to read, fail, put.
>
>
>>None of the transports support passing a mode.
>>
>>Is this something you would like to see? We can add that functionality.
>>I was using the idea that put() creates a new file, so you need a mode.
>>append() modifies in place.
>>
>>But I can see if we change to knits, we might use .append() as a time to
>>maintain the 'files have a similar mode as .bzr/' constraint.
>
>
> I think append should support a mode for when it decides to create the
> file.
>
> Rob
>
Good point, append *should* take a mode. Wasn't an issue yet, as we
don't use append() yet. :)
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/20060110/5d4b8235/attachment.pgp
More information about the bazaar
mailing list