When running an svn up
I regularly encounter this prompt:
Conflict discovered in 'lib/somelibrary.so'.
Select: (p) postpone,
(mf) mine-full, (tf) theirs-full,
(s) show all options:
Hitting s
reveals the options mc
and tc
, mine-conflict and theirs-conflict, which supposedly allow me to take either my version or their version for all conflicts and not just somelibrary.so
.
However, those options don't work. I get this message:
Invalid option; cannot choose based on conflicts in a binary file.
Edwin's answer makes it clear that I've misunderstood how mc
and tc
work, but I still want to be able to take the same resolution for every file that conflicts. Is there a way to make svn use mf
or tf
for every conflict without prompting me again after the first time?
To automatically resolve conflicts on
svn update
,svn switch
,svn merge
, use the--accept
flag.From the SVN Book - svn options:
Meaning of each action can be seen in the
svn resolve
specification:Also check out the Resolve Any Conflict section.
Finally, an example. To automatically resolve all the conflicts as
mine-full
on update, execute: