~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-24 06:48:13 UTC
  • mfrom: (2592.3.241 mbp-packrepo-as-knits)
  • Revision ID: pqm@pqm.ubuntu.com-20071024064813-wjcmv8ofabf6kdrb
Pack repositories!

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
        self._nodes_by_key = None
268
268
        self._size = size
269
269
 
 
270
    def __eq__(self, other):
 
271
        """Equal when self and other were created with the same parameters."""
 
272
        return (
 
273
            type(self) == type(other) and
 
274
            self._transport == other._transport and
 
275
            self._name == other._name and
 
276
            self._size == other._size)
 
277
 
 
278
    def __ne__(self, other):
 
279
        return not self.__eq__(other)
 
280
 
270
281
    def _buffer_all(self):
271
282
        """Buffer all the index data.
272
283