CommitService tests: avoid deprecated `write_commit()`

Nowadays, in mercurial-testhelpers, it's `commit_file()`.
4 jobs for !116 with topic/default/test-fixtures in 1 minute and 58 seconds (queued for 7 seconds)
latest merge request