I have the svn repo with XML files, and I'm not satisfied with svn-update automerge functionality.
After svn update
or svn update --accept postpone
I've got the corrupted XML like this.
<?xml version="1.0" encoding="utf-8"?>
<VERSION>
<<<<<<< .mine
<MAJOR>200</MAJOR>
=======
<MAJOR>100</MAJOR>
>>>>>>> .r10
</VERSION>
SVN think XML was a text file, and place some markers for human editor here
How to disable the merge in svn update
for XML (text) files?
I've read and try all answers in Can I turn off automatic merging in Subversion?, but it's doesn't work for SVN v 1.8.
UPD
I was review the answer https://stackoverflow.com/a/7673033/3578861, and found it's doesn't actual for svn 1.8 - Subcommand 'update' doesn't accept option '--diff-cmd ARG'
But now was a diff3-cmd
option instead.
If I modify the solution to
svn update --accept postpone --diff3-cmd="d:\\f.bat"
and write d:\f.bat
script with
@type %9
@exit 1
It's work now. But it's too much overheaded and unstable hack. This script accept the input streams from all conflicted files and save one of them to result file - it's very stupid and costly
Is there are a more elegant solution?