~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_pull.py

  • Committer: Andrew Bennetts
  • Date: 2009-06-10 10:45:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4446.
  • Revision ID: andrew.bennetts@canonical.com-20090610104545-idppwhjfv7iiz1f4
Add Repository.get_rev_id_for_revno RPC, removes VFS calls from 'pull -r 123' case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
 
363
363
    def test_pull_smart_stacked_streaming_acceptance(self):
364
364
        self.setup_smart_server_with_call_log()
 
365
        # Make a stacked-on branch with two commits so that the
 
366
        # revision-history can't be determined just by looking at the parent
 
367
        # field in the revision in the stacked repo.
365
368
        parent = self.make_branch_and_tree('parent', format='1.9')
366
369
        parent.commit(message='first commit')
 
370
        parent.commit(message='second commit')
367
371
        local = parent.bzrdir.sprout('local').open_workingtree()
368
372
        local.commit(message='local commit')
369
373
        local.branch.create_clone_on_transport(
377
381
        # being too low. If rpc_count increases, more network roundtrips have
378
382
        # become necessary for this use case. Please do not adjust this number
379
383
        # upwards without agreement from bzr's network support maintainers.
380
 
        self.assertLength(27, self.hpss_calls)
 
384
        self.assertLength(18, self.hpss_calls)
381
385
        remote = Branch.open('stacked')
382
386
        self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
383
387