~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-18 01:16:25 UTC
  • mfrom: (3184.1.13 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080118011625-465mgy0mhdz1jiky
(robertc) Reduce traffic when requesting revision streams from a
        smart server (3 MB to 172 bytes for a full bzr.dev pull)
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        except errors.RevisionNotPresent:
158
158
            raise errors.NoSuchRevision(self, revision_id)
159
159
 
 
160
    @symbol_versioning.deprecated_method(symbol_versioning.one_two)
160
161
    @needs_read_lock
161
162
    def get_data_stream(self, revision_ids):
162
 
        """See Repository.get_data_stream."""
163
 
        item_keys = self.item_keys_introduced_by(revision_ids)
 
163
        """See Repository.get_data_stream.
 
164
        
 
165
        Deprecated in 1.2 for get_data_stream_for_search.
 
166
        """
 
167
        search_result = self.revision_ids_to_search_result(set(revision_ids))
 
168
        return self.get_data_stream_for_search(search_result)
 
169
 
 
170
    @needs_read_lock
 
171
    def get_data_stream_for_search(self, search):
 
172
        """See Repository.get_data_stream_for_search."""
 
173
        item_keys = self.item_keys_introduced_by(search.get_keys())
164
174
        for knit_kind, file_id, versions in item_keys:
165
175
            name = (knit_kind,)
166
176
            if knit_kind == 'file':