~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-27 09:33:30 UTC
  • mfrom: (4556.2.10 hpss-push-tags)
  • Revision ID: pqm@pqm.ubuntu.com-20090727093330-882xn6s1tt1zbnw6
(andrew) Add Branch.set_tags_bytes verb, removing more VFS calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
        remote = branch.Branch.open('public')
240
240
        self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
241
241
 
 
242
    def test_push_smart_tags_streaming_acceptance(self):
 
243
        self.setup_smart_server_with_call_log()
 
244
        t = self.make_branch_and_tree('from')
 
245
        rev_id = t.commit(allow_pointless=True, message='first commit')
 
246
        t.branch.tags.set_tag('new-tag', rev_id)
 
247
        self.reset_smart_call_log()
 
248
        self.run_bzr(['push', self.get_url('to-one')], working_dir='from')
 
249
        # This figure represent the amount of work to perform this use case. It
 
250
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
251
        # being too low. If rpc_count increases, more network roundtrips have
 
252
        # become necessary for this use case. Please do not adjust this number
 
253
        # upwards without agreement from bzr's network support maintainers.
 
254
        self.assertLength(11, self.hpss_calls)
 
255
 
242
256
    def test_push_smart_with_default_stacking_url_path_segment(self):
243
257
        # If the default stacked-on location is a path element then branches
244
258
        # we push there over the smart server are stacked and their