896
895
self.run_bzr('ci -m "non-ascii mv"')
899
class TestSmartServerCommit(TestCaseWithTransport):
901
def test_commit_to_lightweight(self):
902
self.setup_smart_server_with_call_log()
903
t = self.make_branch_and_tree('from')
904
for count in range(9):
905
t.commit(message='commit %d' % count)
906
out, err = self.run_bzr(['checkout', '--lightweight', self.get_url('from'),
908
self.reset_smart_call_log()
909
self.build_tree(['target/afile'])
910
self.run_bzr(['add', 'target/afile'])
911
out, err = self.run_bzr(['commit', '-m', 'do something', 'target'])
912
# This figure represent the amount of work to perform this use case. It
913
# is entirely ok to reduce this number if a test fails due to rpc_count
914
# being too low. If rpc_count increases, more network roundtrips have
915
# become necessary for this use case. Please do not adjust this number
916
# upwards without agreement from bzr's network support maintainers.
917
self.assertLength(211, self.hpss_calls)
918
self.assertLength(2, self.hpss_connections)
919
self.expectFailure("commit still uses VFS calls",
920
self.assertThat, self.hpss_calls, ContainsNoVfsCalls)