Comment 1 for bug 189390

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 189390] [NEW] Warn users when doing checkouts with read-only transports

On Tue, 2008-02-05 at 21:23 +0000, Martin Albisetti wrote:
> Public bug reported:
>
> I don't have a branch handy to reproduce this, but a user in IRC
> reported that when trying to do "bzr update" on a checked-out branch
> through http, and the branch happens to be locked, bzr returns:
>
> bzr: ERROR: Cannot lock
> LockDir(http://bazaar.launchpad.net/...bzr/branch/lock): Transport
> operation not possible: http does not support mkdir()
>
> Of course, this wasn't a very useful error message for the user.
>
> Users should be warned when checking out a branch through a read-only
> transport that they might not be able to perform some operations (like
> the warning about working trees not being updated when pushing to a
> remote branch), and possibly a better error message could be shown (like
> what the user can do about it)

No transports are inherently readonly though. For instance, http is
writable via webdav. And writable transports may become readonly. This
can happen when you get removed from a group for example.

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.