~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-08-07 08:28:35 UTC
  • mfrom: (2671.1.5 repository-equality)
  • Revision ID: pqm@pqm.ubuntu.com-20070807082835-sxq0vmfbvsebps5z
(Andrew Bennetts) Remove Repository.__eq__/__ne__ methods, replace with has_same_location method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
        self._lock_count = 0
250
250
        self._leave_lock = False
251
251
 
252
 
    def __eq__(self, other):
 
252
    def has_same_location(self, other):
253
253
        return (self.__class__ == other.__class__ and
254
254
                self.bzrdir.transport.base == other.bzrdir.transport.base)
255
255
        
256
 
    def __ne__(self, other):
257
 
        return not self == other
258
 
 
259
256
    def _ensure_real(self):
260
257
        """Ensure that there is a _real_repository set.
261
258