~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.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:
32
32
                           UnknownFormatError,
33
33
                           UnsupportedFormatError,
34
34
                           )
 
35
from bzrlib import graph
35
36
from bzrlib.index import GraphIndex, InMemoryGraphIndex
36
37
from bzrlib.repository import RepositoryFormat
37
38
from bzrlib.smart import server
757
758
        """
758
759
        broken_repo = self.make_broken_repository()
759
760
        empty_repo = self.make_repository('empty-repo')
760
 
        stream = broken_repo.get_data_stream(['rev1a', 'rev2', 'rev3'])
 
761
        search = graph.SearchResult(set(['rev1a', 'rev2', 'rev3']),
 
762
            set(), 3, ['rev1a', 'rev2', 'rev3'])
 
763
        stream = broken_repo.get_data_stream_for_search(search)
761
764
        empty_repo.lock_write()
762
765
        self.addCleanup(empty_repo.unlock)
763
766
        empty_repo.start_write_group()