2789
2789
if (old == _mod_branch.BzrBranchFormat5 and
2790
2790
new in (_mod_branch.BzrBranchFormat6,
2792
2793
branch_converter = _mod_branch.Converter5to6()
2793
2794
elif (old == _mod_branch.BzrBranchFormat6 and
2795
2797
branch_converter = _mod_branch.Converter6to7()
2797
2802
raise errors.BadConversionTarget("No converter", new)
2798
2803
branch_converter.convert(branch)