The saveRepository documentation is not correct. Only two arguments are documented - three or four are required. The documentation states that the repository must be created with compression enabled - the test suite does not bear this out. If anything, the opposite is true.