Implement dirty writing in repository tool.