~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to groupcompress.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-24 04:18:49 UTC
  • mto: (0.17.18 trunk)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20080724041849-06lrpzhaxtd1qvyq
Copy the EquivalenceTable code into pyrex and get it under test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        pos = 0
137
137
        line_locations = self.line_locations
138
138
        line_locations.set_right_lines(lines)
 
139
        get = line_locations._matching_lines.get
139
140
        range_len = 0
140
141
        range_start = 0
141
142
        copy_ends = None
143
144
        # insert new lines. To find reusable lines we traverse 
144
145
        while pos < len(lines):
145
146
            locations = line_locations.get_idx_matches(pos)
 
147
            # locations = get(lines[pos])
146
148
            if locations is None:
147
149
                if copy_ends:
148
150
                    result.append((min(copy_ends) - range_len, range_start, range_len))