~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-02-05 14:03:29 UTC
  • mfrom: (3211.3.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20080205140329-aw3rmrn6hk967kyc
Use convenience function to check whether two repository handles are
        referring to the same repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1778
1778
        """Return the graph walker for this repository format"""
1779
1779
        parents_provider = self._make_parents_provider()
1780
1780
        if (other_repository is not None and
1781
 
            other_repository.bzrdir.transport.base !=
1782
 
            self.bzrdir.transport.base):
 
1781
            not self.has_same_location(other_repository)):
1783
1782
            parents_provider = graph._StackedParentsProvider(
1784
1783
                [parents_provider, other_repository._make_parents_provider()])
1785
1784
        return graph.Graph(parents_provider)