/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 breezy/_annotator_py.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-25 17:16:33 UTC
  • mfrom: (7459.3.7 file-content-factory)
  • Revision ID: breezy.the.bot@gmail.com-20200125171633-7mvl4p52cwdxn9l4
Add a 'lines' storage kind.

Merged from https://code.launchpad.net/~jelmer/brz/file-content-factory/+merge/378072

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
            if record.storage_kind == 'absent':
128
128
                raise errors.RevisionNotPresent(record.key, self._vf)
129
129
            this_key = record.key
130
 
            lines = osutils.chunks_to_lines(record.get_bytes_as('chunked'))
 
130
            lines = record.get_bytes_as('lines')
131
131
            num_lines = len(lines)
132
132
            self._text_cache[this_key] = lines
133
133
            yield this_key, lines, num_lines