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.java:85)
                at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:69)
                at 
org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil.copy(FSRepositoryUtil.java:135)
                at 
org.tmatesoft.svn.core.internal.io.fs.FSRepository.getFile(FSRepository.java: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?

Reply via email to