~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-08-01 14:59:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2703.
  • Revision ID: aaron.bentley@utoronto.ca-20070801145908-oyt3q066ndot1bgt
Implement has_same_location

Show diffs side-by-side

added added

removed removed

Lines of Context:
793
793
        """Return True if this repository is flagged as a shared repository."""
794
794
        raise NotImplementedError(self.is_shared)
795
795
 
 
796
    def has_same_location(self, other_repository):
 
797
        """Determine whether this repo and other have the same location"""
 
798
        return (self.bzrdir.root_transport.base ==
 
799
                other_repository.bzrdir.root_transport.base)
 
800
 
796
801
    @needs_write_lock
797
802
    def reconcile(self, other=None, thorough=False):
798
803
        """Reconcile this repository."""