~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

stackedĀ get_parent_map.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
"""Versioned text file storage api."""
21
21
 
 
22
from copy import copy
22
23
from cStringIO import StringIO
23
24
import os
24
25
import urllib
534
535
        self._backing_vf = backing_vf
535
536
        self.calls = []
536
537
 
 
538
    def add_lines(self, key, parents, lines, parent_texts=None,
 
539
        left_matching_blocks=None, nostore_sha=None, random_id=False,
 
540
        check_content=True):
 
541
        self.calls.append(("add_lines", key, parents, lines, parent_texts,
 
542
            left_matching_blocks, nostore_sha, random_id, check_content))
 
543
        return self._backing_vf.add_lines(key, parents, lines, parent_texts,
 
544
            left_matching_blocks, nostore_sha, random_id, check_content)
 
545
 
 
546
    def get_parent_map(self, keys):
 
547
        self.calls.append(("get_parent_map", copy(keys)))
 
548
        return self._backing_vf.get_parent_map(keys)
 
549
 
537
550
    def get_record_stream(self, keys, sort_order, include_delta_closure):
538
551
        self.calls.append(("get_record_stream", keys, sort_order,
539
552
            include_delta_closure))