~bzr-pqm/bzr/2.3

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-28 00:42:46 UTC
  • mfrom: (5665.1.2 2.3-feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20120328004246-kx0vzifaqi142b8i
(jelmer) Add basic support for feature flags. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1568
1568
        """Return the format for the branch object in a_bzrdir."""
1569
1569
        try:
1570
1570
            transport = a_bzrdir.get_branch_transport(None, name=name)
1571
 
            format_string = transport.get_bytes("format")
 
1571
            format_string = bzrdir.extract_format_string(
 
1572
                transport.get_bytes("format"))
1572
1573
            format = klass._formats[format_string]
1573
1574
            if isinstance(format, MetaDirBranchFormatFactory):
1574
1575
                return format()