~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2011-12-06 16:30:08 UTC
  • mfrom: (6345.2.3 hpss-call-counts-3)
  • Revision ID: pqm@pqm.ubuntu.com-20111206163008-eoqz60dpbysebble
(jelmer) Fix HPSS call count for 'bzr co --lightweight' and add more HPSS
 call count tests. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
        tree.branch.tags.set_tag("atag", revid)
295
295
        out, err = self.run_bzr('uncommit --keep-tags --force tree')
296
296
        self.assertEquals({"atag": revid}, tree.branch.tags.get_tag_dict())
 
297
 
 
298
 
 
299
class TestSmartServerUncommit(TestCaseWithTransport):
 
300
 
 
301
    def test_uncommit(self):
 
302
        self.setup_smart_server_with_call_log()
 
303
        t = self.make_branch_and_tree('from')
 
304
        for count in range(2):
 
305
            t.commit(message='commit %d' % count)
 
306
        self.reset_smart_call_log()
 
307
        out, err = self.run_bzr(['uncommit', '--force', self.get_url('from')])
 
308
        # This figure represent the amount of work to perform this use case. It
 
309
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
310
        # being too low. If rpc_count increases, more network roundtrips have
 
311
        # become necessary for this use case. Please do not adjust this number
 
312
        # upwards without agreement from bzr's network support maintainers.
 
313
        self.assertLength(14, self.hpss_calls)