~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Martin Pool
  • Date: 2009-07-09 09:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4566.
  • Revision ID: mbp@sourcefrog.net-20090709090411-3q5c28cqon9k10tf
Repository.fetch also considers fallbacks in deciding whether to fetch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1535
1535
            raise errors.InternalBzrError(
1536
1536
                "May not fetch while in a write group.")
1537
1537
        # fast path same-url fetch operations
1538
 
        if self.has_same_location(source) and fetch_spec is None:
 
1538
        # TODO: lift out to somewhere common with RemoteRepository
 
1539
        if (self.has_same_location(source) and fetch_spec is None
 
1540
            and ([f._transport.base for f in self._fallback_repositories]
 
1541
                 == [f._transport.base for f in source._fallback_repositories])):
1539
1542
            # check that last_revision is in 'from' and then return a
1540
1543
            # no-operation.
1541
1544
            if (revision_id is not None and