~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Andrew Bennetts
  • Date: 2008-07-28 06:53:44 UTC
  • mfrom: (3581 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3583.
  • Revision ID: andrew.bennetts@canonical.com-20080728065344-ocndjoycs903q6fz
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
    def __ne__(self, other):
285
285
        return not self.__eq__(other)
286
286
 
 
287
    def __repr__(self):
 
288
        return "%s(%r)" % (self.__class__.__name__,
 
289
            self._transport.abspath(self._name))
 
290
 
287
291
    def _buffer_all(self):
288
292
        """Buffer all the index data.
289
293
 
877
881
            elements = line.split('\0')
878
882
            if len(elements) != self._expected_elements:
879
883
                raise errors.BadIndexData(self)
880
 
            # keys are tuples
881
 
            key = tuple(elements[:self._key_length])
 
884
            # keys are tuples. Each element is a string that may occur many
 
885
            # times, so we intern them to save space. AB, RC, 200807
 
886
            key = tuple(intern(element) for element in elements[:self._key_length])
882
887
            if first_key is None:
883
888
                first_key = key
884
889
            absent, references, value = elements[-3:]