Carlos Sanchez a écrit :
So I have a problem when svn tries to commit text files with inconsistent line endings (dos and unix), eg. the site generated docs that we're trying to make consistent. I have set auto props with the svn:native, svn complains when commiting new files with the "inconsistent new line" message.
so you have dos and unix line endings in your file.
I've seen this code in the svn add command, but don't know how to use it from the scm provider. protected ScmResult executeAddCommand( ScmProviderRepository repository, ScmFileSet fileSet, String message, boolean binary ) throws ScmException { // TODO: could do this with propset? if ( binary ) { throw new ScmException( "This provider does not yet support binary files" ); } If I don't find a solution, i'm gonna add the setProperty and deleteProperty methods to the scm provider and check if my scm is instance of it to remove the native property before commit.
I'm +1 for these two methods but it isn't a good workaround. It'd be better to fix your line endings before to commit your files and keep svn properties like they are defined in svn or with auto props.
Emmanuel