mode support missed the append function?
Robert Collins
robertc at robertcollins.net
Tue Jan 10 21:58:51 GMT 2006
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
--
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/20060111/60b7489a/attachment.pgp
More information about the bazaar
mailing list