~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

Merge repository-equality.

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
        return '%s(%r)' % (self.__class__.__name__, 
236
236
                           self.bzrdir.transport.base)
237
237
 
 
238
    def __eq__(self, other):
 
239
        if self.__class__ is not other.__class__:
 
240
            return False
 
241
        return (self.control_files._transport.base ==
 
242
                other.control_files._transport.base)
 
243
 
 
244
    def __ne__(self, other):
 
245
        return not self == other
 
246
 
238
247
    def is_locked(self):
239
248
        return self.control_files.is_locked()
240
249