~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-20 03:50:35 UTC
  • mfrom: (1740.5.9 bzr.mbp.traceback)
  • Revision ID: pqm@pqm.ubuntu.com-20060620035035-a9a7dc096fed5060
(mbp) show traceback on stderr on unexpected errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        """
93
93
        if not allow_unsupported and not format.is_supported():
94
94
            # see open_downlevel to open legacy branches.
95
 
            raise errors.UnsupportedFormatError(
96
 
                    'sorry, format %s not supported' % format,
97
 
                    ['use a different bzr version',
98
 
                     'or remove the .bzr directory'
99
 
                     ' and "bzr init" again'])
 
95
            raise errors.UnsupportedFormatError(format=format)
100
96
 
101
97
    def clone(self, url, revision_id=None, basis=None, force_new_repo=False):
102
98
        """Clone this bzrdir and its contents to url verbatim.
978
974
        try:
979
975
            return klass._formats[format_string]
980
976
        except KeyError:
981
 
            raise errors.UnknownFormatError(format_string)
 
977
            raise errors.UnknownFormatError(format=format_string)
982
978
 
983
979
    @classmethod
984
980
    def get_default_format(klass):