/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/knit.py

  • Committer: Ian Clatworthy
  • Date: 2007-09-20 06:12:51 UTC
  • mfrom: (2831.7.2 bzr.versionedfile)
  • mto: This revision was merged to the branch mainline in revision 2840.
  • Revision ID: ian.clatworthy@internode.on.net-20070920061251-hmtw92x5y19nhwa1
versionedfile.py code cleanups (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1022
1022
            text_map[version_id] = text
1023
1023
        return text_map, final_content
1024
1024
 
 
1025
    @staticmethod
 
1026
    def _apply_delta(lines, delta):
 
1027
        """Apply delta to lines."""
 
1028
        lines = list(lines)
 
1029
        offset = 0
 
1030
        for start, end, count, delta_lines in delta:
 
1031
            lines[offset+start:offset+end] = delta_lines
 
1032
            offset = offset + (start - end) + count
 
1033
        return lines
 
1034
 
1025
1035
    def iter_lines_added_or_present_in_versions(self, version_ids=None, 
1026
1036
                                                pb=None):
1027
1037
        """See VersionedFile.iter_lines_added_or_present_in_versions()."""