1591
1591
"""Return the format for the branch object in a_bzrdir."""
1593
1593
transport = a_bzrdir.get_branch_transport(None, name=name)
1595
1596
return format_registry.get(format_string)
1596
1597
except errors.NoSuchFile:
1597
1598
raise errors.NotBranchError(path=transport.base, bzrdir=a_bzrdir)