Stacking loop causes unhelpful "unable to obtain lock" errors during "bzr up"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned |
Bug Description
lp:~openerp/openobject-server/5.0 says and lp:~openerp/openobject-server/trunk claim to be stacked on each other (presumably due to bug 377519). This causes bzr to emit confusing errors like the following:
"""
bzr up
Doing on-the-fly conversion from RemoteRepositor
This may take some time. Upgrade the repositories to the same format for better performance.
Unable to obtain lock held by <email address hidden>
at crowberry [process #12281], acquired 11 seconds ago.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(remote lock)": bzr+ssh:
"""
Instead bzr should detect the stacking loop, and give the user a helpful error. Something like this perhaps:
bzr: ERROR: Cannot open bzr+ssh:
tags: | added: lock |
description: | updated |
description: | updated |
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: check-for-breezy |
The root cause of this is bug 377519: lp:~openerp/openobject-server/5.0 says it is stacked on lp:~openerp/openobject-server/trunk, but lp:~openerp/openobject-server/trunk says it is stacked on lp:~openerp/openobject-server/5.0. This is almost certainly due to branch renames done via Launchpad, but due to bug 377519 Launchpad doesn't update the stacked-on locations when renames happen.
The workaround is as described in the comments of that bug. (Edit the .bzr/branch/ branch. conf files for those branches via SFTP.)
Bzr itself could be more helpful in detecting this situation (a loop in stacked-on locations) and guiding the user towards fixing it, so I'll leave this bug open for that aspect.