/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/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-03-28 13:56:45 UTC
  • mto: (2323.5.14 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: abentley@panoramicfeedback.com-20070328135645-0nucuw6ijokpe076
Give a nicer error on fetch when repos are in incompatible formats

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
        If revision_id is None all content is copied.
327
327
        """
328
328
        revision_id = osutils.safe_revision_id(revision_id)
329
 
        return InterRepository.get(source, self).fetch(revision_id=revision_id,
330
 
                                                       pb=pb)
 
329
        try:
 
330
            return InterRepository.get(source, self).fetch(
 
331
                revision_id=revision_id, pb=pb)
 
332
        except NotImplementedError:
 
333
            raise errors.IncompatibleRepositories(source, self)
331
334
 
332
335
    def get_commit_builder(self, branch, parents, config, timestamp=None, 
333
336
                           timezone=None, committer=None, revprops=None,