~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

(jelmer) Add support for feature flags. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

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