switch doesn't find sibling branches when colocated

Bug #933178 reported by Aaron Bentley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Triaged
Medium
Unassigned
Breezy
Triaged
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/".

Revision history for this message
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
Revision history for this message
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)
Changed in bzr:
status: New → Triaged
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
milestone: none → 3.0.0
Jelmer Vernooij (jelmer)
tags: added: location-ui
Jelmer Vernooij (jelmer)
Changed in brz:
milestone: 3.0.0 → 3.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.