BadConversionTarget: Cannot convert to format <class 'bzrlib.branch.BzrBranchFormat6'>. No converter

Bug #375152 reported by Martin Albisetti on 2009-05-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

After branching Loggerhead locally with at r4347, and trying to upgrade it to rich root, it blows up with:

Mon 2009-05-11 18:54:47 -0300
0.039 bzr arguments: [u'upgrade', u'--default-rich-root']
0.058 looking for plugins in /home/beuno/.bazaar/plugins
0.131 revnocache actual strategy is revgraph
0.218 looking for plugins in /usr/lib/python2.6/dist-packages/bzrlib/plugins
0.218 Plugin name pqm already loaded
0.226 encoding stdout as sys.stdout encoding 'UTF-8'
0.446 creating repository in file:///home/beuno/test_bbc/.bzr/.
23.951 Auto-packing repository <bzrlib.repofmt.pack_repo.RepositoryPackCollection object at 0x998550c>, which has 10 pack files, containing 1000 revisions. Packing 10 files into 1 affecting 1000 revisions
25.097 Auto-packing repository <bzrlib.repofmt.pack_repo.RepositoryPackCollection object at 0x998550c> completed
45.645 Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 560, in run_argv_aliases
  File "/home/beuno/.bazaar/plugins/recurse/", line 81, in run
  File "/home/beuno/.bazaar/plugins/recurse/", line 93, in _upgrade
    upgrade(url, format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 85, in upgrade
    Convert(url, format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 40, in __init__
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 79, in convert
    self.bzrdir = converter.convert(self.bzrdir, self.pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 2966, in convert
    raise errors.BadConversionTarget("No converter", new)
BadConversionTarget: Cannot convert to format <class 'bzrlib.branch.BzrBranchFormat6'>. No converter

45.646 return code 3

John A Meinel (jameinel) wrote :

'--default-rich-root' is probably an alias to --rich-root-pack, not '--1.9-rich-root'. My guess is that loggerhead is in --1.9 format, and it is failing to downgrade.

Instead of '--default-rich-root' try using 'bzr upgrade --1.9-rich-root' (or '--1.14-rich-root', etc.)

John A Meinel (jameinel) wrote :

I certainly think the error should be better.
Arguably '--default-X' could be rethought as 'pick the best version given my source format', and since you're already at --1.9 that would be --1.9-rich-root, rather than the current 'default' which is --rich-root-pack.

Changed in bzr:
importance: Undecided → Medium
status: New → Triaged
Martin Albisetti (beuno) wrote :

Correct, upgrading to --1.9-rich-root works perfectly.

I think its the branch not the repository :)

Based purely on the error, and that we have a generic repo->repo
converter that clones and switches.


Robert Collins (lifeless) wrote :

On Tue, 2009-05-12 at 03:03 +0000, Martin Albisetti wrote:
> Correct, upgrading to --1.9-rich-root works perfectly.

And this is because the branch format in the 1.9- family is different.


John A Meinel (jameinel) wrote :

absolutely it is because of the branch and not because of the repository. The problem is that --1.9 => --default-rich-root is sort of a 'side-grade' for the repository, but a distinct downgrade for the branch.
Actually, it is also arguably a downgrade for the repo, since it would be going back to Knit indexes, rather than Btree....

Martin Pool (mbp) on 2010-03-18
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer) on 2011-02-01
tags: added: format-infrastructure formats upgrade
Jelmer Vernooij (jelmer) on 2017-11-08
tags: added: check-for-breezy
Jelmer Vernooij (jelmer) on 2018-11-28
Changed in brz:
status: New → Triaged
importance: Undecided → Medium
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers