switch sibling should check for lightweight checkout first

Bug #506177 reported by Russ Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

This is based on the following mailing list thread:

http://thread.gmane.org/gmane.comp.version-control.bazaar-ng.general/65367/focus=65433

To quote John Arbash Meinel:

It is because of how the 'trunk' short name is getting looked up. If you
look at bzrlib.builtins.cmd_switch._get_branch_location

It first checks to see if this is a bound branch, before checking if it
is a branch reference. And use the master location as the base for
determining the relative path.

Which is inconsistent with bzrlib.switch._set_branch_location, which
first checks to see if this is a lightweight checkout before checking to
see if it has a master branch.

Probably "just a bug" and we should switch _get_branch_location to check
for a lightweight checkout first.

Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
tags: added: switch
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.