~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Robert Collins
  • Date: 2006-02-21 12:42:57 UTC
  • mto: (1563.1.5 integration)
  • mto: This revision was merged to the branch mainline in revision 1568.
  • Revision ID: robertc@robertcollins.net-20060221124257-8ee8f4b0b3b45ac3
Add a new format for what will become knit, and the surrounding logic to upgrade repositories within metadirs, and tests for the same.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1455
1455
def get_format_type(typestring):
1456
1456
    """Parse and return a format specifier."""
1457
1457
    if typestring == "metadir":
1458
 
        return bzrdir.BzrDirMetaFormat1
 
1458
        return bzrdir.BzrDirMetaFormat1()
 
1459
    if typestring == "knit":
 
1460
        format = bzrdir.BzrDirMetaFormat1()
 
1461
        format.repository_format = bzrlib.repository.RepositoryFormatKnit1()
 
1462
        return format
1459
1463
    msg = "No known bzr-dir format %s. Supported types are: metadir\n" %\
1460
1464
        (typestring)
1461
1465
    raise BzrCommandError(msg)