~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Martin Pool
  • Date: 2007-04-01 06:19:16 UTC
  • mfrom: (2323.5.20 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: mbp@sourcefrog.net-20070401061916-plpgsxdf8g7gll9o
Merge 0.15 final release back to trunk, including: recommend upgrades of old workingtrees, handle multiple http redirections, some dirstate fixes, 

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
        inter = InterRepository.get(source, self)
 
330
        try:
 
331
            return inter.fetch(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, 
1204
1207
    """Common base class for the new repositories using the metadir layout."""
1205
1208
 
1206
1209
    rich_root_data = False
1207
 
    support_tree_reference = False
 
1210
    supports_tree_reference = False
1208
1211
    _matchingbzrdir = bzrdir.BzrDirMetaFormat1()
1209
1212
 
1210
1213
    def __init__(self):