~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

Merge bzr.dev 4187, and revert the change to fix refcycle issues.

I apparently didn't run the smart fetch tests. Which show that we access inv+chk pages
as a fulltext, and then insert the stream, which expects to get the block as a compressed
block. :(.
Need to rethink how to do it, possibly with weakrefs.


This also brings in CommitBuilder.record_iter_changes() and the updates to btree_index
and backing indices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
        if self._supports_external_lookups is None:
429
429
            self._ensure_real()
430
430
            self._supports_external_lookups = \
431
 
                self._custom_format.supports_external_lookups 
 
431
                self._custom_format.supports_external_lookups
432
432
        return self._supports_external_lookups
433
433
 
434
434
    @property
1325
1325
        return self._real_repository.all_revision_ids()
1326
1326
 
1327
1327
    @needs_read_lock
1328
 
    def get_deltas_for_revisions(self, revisions):
 
1328
    def get_deltas_for_revisions(self, revisions, specific_fileids=None):
1329
1329
        self._ensure_real()
1330
 
        return self._real_repository.get_deltas_for_revisions(revisions)
 
1330
        return self._real_repository.get_deltas_for_revisions(revisions,
 
1331
            specific_fileids=specific_fileids)
1331
1332
 
1332
1333
    @needs_read_lock
1333
 
    def get_revision_delta(self, revision_id):
 
1334
    def get_revision_delta(self, revision_id, specific_fileids=None):
1334
1335
        self._ensure_real()
1335
 
        return self._real_repository.get_revision_delta(revision_id)
 
1336
        return self._real_repository.get_revision_delta(revision_id,
 
1337
            specific_fileids=specific_fileids)
1336
1338
 
1337
1339
    @needs_read_lock
1338
1340
    def revision_trees(self, revision_ids):