qswitch crashes if there is an 'unknown format' branch
Bug #404265 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Incomplete
|
Medium
|
Unassigned |
Bug Description
I don't think this is generic to 'qswitch', but when I bring up "bzr qswitch" it starts churning something on my hard drive (presumably looking for branches.)
It then runs into a Loom branch that I created a while ago, but have since removed bzr-loom.
After spinning for a while, it just disappears, and I see:
% bzr qswitch
bzr: ERROR: Unknown branch format: 'Bazaar-NG Loom branch format 6\n'
Potentially this is just something down at the bzr "Repository.
Changed in qbzr: | |
importance: | Undecided → Medium |
milestone: | none → 0.13 |
status: | New → Confirmed |
To post a comment you must log in.
John, will be nice to have traceback.
I suppose it dies on the following code in lib/switch.py:
repo = self.branch. bzrdir. find_repository ()
if repo != None:
branches = repo.find_ branches( ) # <<<<< Perhaps here?
branch_ combo.addItem( url_for_ display( br.base) )
for br in branches:
As I could see this error comes from bzrlib internals. So the best we can do is to catch error here (which error exactly? traceback?) and leaves branches empty list.
Do you agree?