~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-01 19:41:16 UTC
  • mfrom: (2158 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2159.
  • Revision ID: john@arbash-meinel.com-20061201194116-nvn5qhfxux5284jc
[merge] bzr.dev 2158

Show diffs side-by-side

added added

removed removed

Lines of Context:
1175
1175
        _found is a private parameter, do not use it.
1176
1176
        """
1177
1177
        if not _found:
1178
 
            assert isinstance(BzrDirFormat.find_format(transport),
1179
 
                              self.__class__)
 
1178
            found_format = BzrDirFormat.find_format(transport)
 
1179
            if not isinstance(found_format, self.__class__):
 
1180
                raise AssertionError("%s was asked to open %s, but it seems to need "
 
1181
                        "format %s" 
 
1182
                        % (self, transport, found_format))
1180
1183
        return self._open(transport)
1181
1184
 
1182
1185
    def _open(self, transport):