~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2006-12-21 03:56:31 UTC
  • mto: (2255.1.1 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 2220.
  • Revision ID: aaron.bentley@utoronto.ca-20061221035631-07w2sshdphu5e2nj
Fix default to work with RepositoryFormat.set_default_format

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
def get_format_type(typestring):
97
97
    """Parse and return a format specifier."""
 
98
    # Have to use BzrDirMetaFormat1 directly, so that
 
99
    # RepositoryFormat.set_default_format works
 
100
    if typestring == "default":
 
101
        return bzrdir.BzrDirMetaFormat1()
98
102
    try:
99
103
        return bzrdir.format_registry.make_bzrdir(typestring)
100
104
    except KeyError: