/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-07-17 07:33:12 UTC
  • mfrom: (3530.3.3 btree-graphindex)
  • Revision ID: pqm@pqm.ubuntu.com-20080717073312-reglpowwyo671081
(robertc) Intern GraphIndex strings and handle frozenset inputs to
        make_mpdiffs in the case of errors. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
881
881
            elements = line.split('\0')
882
882
            if len(elements) != self._expected_elements:
883
883
                raise errors.BadIndexData(self)
884
 
            # keys are tuples
885
 
            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])
886
887
            if first_key is None:
887
888
                first_key = key
888
889
            absent, references, value = elements[-3:]