~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-02-22 06:19:39 UTC
  • mfrom: (1563.1.5 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060222061939-b4b7825d1d580ccf
Merge in ui for creating and converting to knit branch - no backend support yet.

Show diffs side-by-side

added added

removed removed

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