The slowness is from the fact that repository.find_branches is blocking. Gary van de Merwe has a merge proposal for bzr to switch to add an iter_branches capability that could remain responsive (but probably not create the window any fast).
For now, I think we should only monkey with the switch dialog if we are working with a colocated workspace (which means ".bzr/branches" or ".bzrbranches" is in the base). I'll patch to this effect.
The slowness is from the fact that repository. find_branches is blocking. Gary van de Merwe has a merge proposal for bzr to switch to add an iter_branches capability that could remain responsive (but probably not create the window any fast).
For now, I think we should only monkey with the switch dialog if we are working with a colocated workspace (which means ".bzr/branches" or ".bzrbranches" is in the base). I'll patch to this effect.