/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: Canonical.com Patch Queue Manager
  • Date: 2007-09-03 21:19:07 UTC
  • mfrom: (2776.1.3 commit)
  • Revision ID: pqm@pqm.ubuntu.com-20070903211907-igj2uj83hz1yyqs9
(robertc) Don't double-calculate the text sha1 during commit. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
915
915
            delta = False
916
916
 
917
917
        digest = sha_strings(lines)
 
918
        text_length = sum(map(len, lines))
918
919
        options = []
919
920
        if lines:
920
921
            if lines[-1][-1] != '\n':
944
945
 
945
946
        access_memo = self._data.add_record(version_id, digest, store_lines)
946
947
        self._index.add_version(version_id, options, access_memo, parents)
947
 
        return lines
 
948
        return digest, text_length, lines
948
949
 
949
950
    def check(self, progress_bar=None):
950
951
        """See VersionedFile.check()."""