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

Bug #375152 reported by Martin Albisetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Medium
Unassigned

Bug Description

After branching Loggerhead locally with bzr.dev 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/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/beuno/.bazaar/plugins/recurse/__init__.py", line 81, in run
    delete_backup_dir)
  File "/home/beuno/.bazaar/plugins/recurse/__init__.py", line 93, in _upgrade
    upgrade(url, format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/upgrade.py", line 85, in upgrade
    Convert(url, format)
  File "/usr/lib/python2.6/dist-packages/bzrlib/upgrade.py", line 40, in __init__
    self.convert()
  File "/usr/lib/python2.6/dist-packages/bzrlib/upgrade.py", line 79, in convert
    self.bzrdir = converter.convert(self.bzrdir, self.pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", 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

Revision history for this message
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.)

Revision history for this message
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
Revision history for this message
Martin Albisetti (beuno) wrote :

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

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 375152] Re: BadConversionTarget: Cannot convert to format <class 'bzrlib.branch.BzrBranchFormat6'>. No converter

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.

-Rob

Revision history for this message
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.

-Rob

Revision history for this message
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)
Changed in bzr:
status: Triaged → Confirmed
Jelmer Vernooij (jelmer)
tags: added: format-infrastructure formats upgrade
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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