~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-04-18 05:23:03 UTC
  • mfrom: (1666.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060418052303-2170dd38c5ed278b
Fix and test upgrades from bzrdir 6 over SFTP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
 
84
84
def get_format_type(typestring):
85
85
    """Parse and return a format specifier."""
 
86
    if typestring == "weave":
 
87
        return bzrdir.BzrDirFormat6()
86
88
    if typestring == "metadir":
87
89
        return bzrdir.BzrDirMetaFormat1()
88
90
    if typestring == "knit":
89
91
        format = bzrdir.BzrDirMetaFormat1()
90
92
        format.repository_format = bzrlib.repository.RepositoryFormatKnit1()
91
93
        return format
92
 
    msg = "No known bzr-dir format %s. Supported types are: metadir\n" %\
 
94
    msg = "No known bzr-dir format %s. Supported types are: weave, metadir\n" %\
93
95
        (typestring)
94
96
    raise BzrCommandError(msg)
95
97