[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to disable automatic merging...

From: Lieven Govaerts <svnlgo_at_mobsol.be>
Date: 2007-12-10 22:46:33 CET

Noah Spurrier wrote:
> On 2007-12-10 12:02-0700, Gus Hart wrote:
>> This is my first post to the list.
>>
>> I find it incredible that such a thing as automatic merging even
>> exists. SVN is writing code for you! Be that as it may, how can I
>> prevent automatic merging?
>>
>> I hunted around for this topic on the web and found someone's
>> suggestion to add the following to the ~/.subversion/config file:
>> diff-cmd=/usr/bin/false
>> diff3-cmd=/usr/bin/false
>>
>> but alas this doesn't work. I still get the dreaded "G" tag when
>> updating. I have a feeling that somehow the config file is being
>> ignored as changing the "editor-cmd" value didn't change anything
>> either...
>>
>> Please help if you can. Thanks!
>> -GH
>
> This has always been one of my pet peeves CVS and it annoyed me that it was
> carried over into SVN. Why isn't automatic merging an OPTION? A "mostly
> works" solution isn't great for every team or type of repository. I don't
> think there is a way to force a C instead of a G. I have looked for this
> and
> never found a good answer. Let me know if you find a good solution to force
> conflicts.

Subversion doesn't merge files it thinks are binary. You can help
Subversion's binary-detection algorithm a hand by setting the
svn:mime-type property on a file to 'application/octet-stream'. Using
auto-props you can do this for all files with a certain extension.

I would never suggest to do this for C or Java source files, but it can
be helpful, occasionally.

Lieven

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 10 22:46:58 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.