Subversion - Always resolve conflicts using mine for a set of files

前端 未结 3 664
予麋鹿
予麋鹿 2020-12-30 08:48

We\'ve got a sizable chunk of auto-generated code that we keep around in subversion. Sometimes I\'m working on a piece of the generator while another coworker is working on

相关标签:
3条回答
  • 2020-12-30 09:30

    You should probably avoid having generated files in SVN in the first place - as you can tell, this is a source of conflicts. Better to have them be ignored, and build them as part of the build.

    But as to your question, you should be able to use the --accept mine-full option to svn update, which makes conflicts automatically resolve to mine. See the Subversion manual and man pages for more details.

    0 讨论(0)
  • 2020-12-30 09:31

    That should be

    svn resolve --accept [postpone|base|mine-full|theirs-full|edit|launch]
    

    No?

    0 讨论(0)
  • 2020-12-30 09:45

    svn update --accept [postpone|base|mine-full|theirs-full|edit|launch]

    0 讨论(0)
提交回复
热议问题