~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-08 00:49:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1423.
  • Revision ID: robertc@robertcollins.net-20051008004913-542d2cc46704c6e2
raise a specific error on unsupported branches so that they can be distinguished from generic errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
506
506
 
507
507
        if (not relax_version_check
508
508
            and self._branch_format != 5):
509
 
            raise BzrError('sorry, branch format %r not supported' % fmt,
 
509
            raise errors.UnsupportedFormatError(
 
510
                           'sorry, branch format %r not supported' % fmt,
510
511
                           ['use a different bzr version',
511
512
                            'or remove the .bzr directory'
512
513
                            ' and "bzr init" again'])