~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-03 03:18:53 UTC
  • mfrom: (5278.1.5 gnuness)
  • Revision ID: pqm@pqm.ubuntu.com-20100603031853-rzypooksqjaonb9m
(mbp) avoid inaccurate use of "linux" or non-gnu-compliant "open source"
 (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1631
1631
        keys_to_add = []
1632
1632
        def flush():
1633
1633
            bytes = self._compressor.flush().to_bytes()
 
1634
            self._compressor = GroupCompressor()
1634
1635
            index, start, length = self._access.add_raw_records(
1635
1636
                [(None, len(bytes))], bytes)[0]
1636
1637
            nodes = []
1639
1640
            self._index.add_records(nodes, random_id=random_id)
1640
1641
            self._unadded_refs = {}
1641
1642
            del keys_to_add[:]
1642
 
            self._compressor = GroupCompressor()
1643
1643
 
1644
1644
        last_prefix = None
1645
1645
        max_fulltext_len = 0