switch doesn't find sibling branches when colocated

Bug #933178 reported by Aaron Bentley on 2012-02-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Medium
Unassigned
Breezy
Medium
Jelmer Vernooij

Bug Description

abentley@speedy:~/sandbox$ bzr init colocated
Created a standalone tree (format: 2a)
abentley@speedy:~/sandbox$ bzr switch -d colocated/ -b one
Tree is up to date at revision 0.
Switched to branch: /home/abentley/sandbox/colocated/
abentley@speedy:~/sandbox$ bzr switch -d colocated/ -b two
Tree is up to date at revision 0.
Switched to branch: /home/abentley/sandbox/colocated/
abentley@speedy:~/sandbox$ bzr checkout colocated checkout --lightweight
abentley@speedy:~/sandbox$ cd checkout
abentley@speedy:~/sandbox/checkout$ bzr switch one
bzr: ERROR: Not a branch: "/home/abentley/sandbox/colocated/one/".

Jelmer Vernooij (jelmer) wrote :

Like 'bzr branches', bzr switch looks at sibling branches of the current branch, not of the current working tree.

I think this is reasonable. Is there a particular reason why you would want to switch from a lightweight checkout of something else into a branch that is colocated there?

tags: added: colocated
removed: colocated-branches
Aaron Bentley (abentley) wrote :

AFAICT, switch is looking at siblings of either the current working tree or of the branch reference. Instead, I think it should look at siblings of the referenced branch.

In my example, "checkout" is a checkout of "two", which has "one" as a sibling. But I can't switch to "one" by running "bzr switch one".

Jelmer Vernooij (jelmer) on 2012-02-27
Changed in bzr:
status: New → Triaged
importance: Undecided → Medium
Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-03-31
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-04-01
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.0.0
Jelmer Vernooij (jelmer) on 2018-11-16
tags: added: location-ui
Jelmer Vernooij (jelmer) on 2019-03-04
Changed in brz:
milestone: 3.0.0 → 3.1.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers