~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: Aaron Bentley
  • Date: 2009-06-24 14:38:14 UTC
  • mto: This revision was merged to the branch mainline in revision 4490.
  • Revision ID: aaron@aaronbentley.com-20090624143814-of09odkmw4a9py7v
Add test that duplicates are skipped.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1413
1413
        # XXX: TODO: remove this, it is just for safety checking for now
1414
1414
        inserted_keys = set()
1415
1415
        for record in stream:
 
1416
            # Avoid inserting records that are already present.
1416
1417
            if len(list(self._index._get_entries([record.key]))) > 0:
1417
1418
                continue
1418
1419
            # Raise an error when a record is missing.