1636
1636
# should now only have 2 revisions:
1637
1637
self.assertEquals(len(log_formatter.revisions), 2)
1640
class TestSmartServerLog(tests.TestCaseWithTransport):
1642
def test_standard_log(self):
1643
self.setup_smart_server_with_call_log()
1644
t = self.make_branch_and_tree('branch')
1645
self.build_tree_contents([('branch/foo', 'thecontents')])
1648
self.reset_smart_call_log()
1649
out, err = self.run_bzr(['log', self.get_url('branch')])
1650
# This figure represent the amount of work to perform this use case. It
1651
# is entirely ok to reduce this number if a test fails due to rpc_count
1652
# being too low. If rpc_count increases, more network roundtrips have
1653
# become necessary for this use case. Please do not adjust this number
1654
# upwards without agreement from bzr's network support maintainers.
1655
self.assertLength(17, self.hpss_calls)
1657
def test_verbose_log(self):
1658
self.setup_smart_server_with_call_log()
1659
t = self.make_branch_and_tree('branch')
1660
self.build_tree_contents([('branch/foo', 'thecontents')])
1663
self.reset_smart_call_log()
1664
out, err = self.run_bzr(['log', '-v', self.get_url('branch')])
1665
# This figure represent the amount of work to perform this use case. It
1666
# is entirely ok to reduce this number if a test fails due to rpc_count
1667
# being too low. If rpc_count increases, more network roundtrips have
1668
# become necessary for this use case. Please do not adjust this number
1669
# upwards without agreement from bzr's network support maintainers.
1670
self.assertLength(17, self.hpss_calls)