Hello, Could you please post here code you execute and full stack trace?
"svn:/application.octet-stream" is not a valid value, "application/octet-stream" should be used instead, however this different won't have any effect because SVN/SVNKit only checks if the property values starts with "text/" or not to understand if the file is text or binary. I suspect that you use incorrect revisions or checksums while calling ISVNEditor methods, but I'll be able to tell you where the problem is only after looking at the code you use. -- Dmitry Pavlenko, TMate Software, http://subgit.com/ - git-svn bridge > I am trying to store and update matlab files. The initial creation of the > file is successful, using ISVNEditor and SVNDeltaGenerator. I am able to > commit another copy of the file if the contents are identical to the > first. The second commit shows up when I view the repository with > TortoiseSVN. > > But if I commit a version with changed contents, the > SVNRepository.getFile() fails with this exception: > > org.tmatesoft.svn.core.SVNException: svn: E204899: E160004: Checksum > mismatch while reading representation: expected: > 8a13225f35627a9fa78670a2475e14ea > actual: 40b4eb0582fedfc7e455f435f73e7d3d > at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.j > ava:85) at > org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.j > ava:69) at > org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUt > il.java:135) at > org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.ja > va:236) > > I tried explicitly setting the property svn:mime-type to > svn:/application.octet-stream in hopes that the file was being > mis-categorized by SVN, but this did not eliminate the error. > > Has anyone stored matlab files successfully? Can anyone shed light on > where the checksum is being computed? Can I replace the checksum > computation for the expected and actual checksums?