~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

  • Committer: Robert Collins
  • Date: 2007-07-15 04:30:29 UTC
  • mto: (2592.3.29 repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070715043029-59iiywcyu729js37
Reverse index ordering - we do not have date prefixed revids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        # one to pad all the data with reference-length and determine entry
107
107
        # addresses.
108
108
        # One to serialise.
109
 
        nodes = sorted(self._nodes.items(),reverse=True)
 
109
        
 
110
        # forward sorted by key. In future we may consider topological sorting,
 
111
        # at the cost of table scans for direct lookup, or a second index for
 
112
        # direct lookup
 
113
        nodes = sorted(self._nodes.items())
110
114
        # we only need to pre-pass if we have reference lists at all.
111
115
        if self.reference_lists:
112
116
            non_ref_bytes = prefix_length