Warn users when doing checkouts with read-only transports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned | ||
Breezy |
Triaged
|
High
|
Unassigned |
Bug Description
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://
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)
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: confusing-ui |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: readonly |
On Tue, 2008-02-05 at 21:23 +0000, Martin Albisetti wrote: bazaar. launchpad. net/... bzr/branch/ lock): Transport
> 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://
> 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 www.robertcolli ns.net/ keys.txt>.
--
GPG key available at: <http://