/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: v.ladeuil+lp at free
  • Date: 2006-11-08 07:44:30 UTC
  • mfrom: (2123 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061108074430-a9c08d4a475bd97f
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

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