Subversion resolve all conflicts quickly

ε祈祈猫儿з 提交于 2019-12-22 01:53:49

问题


When I have several conflicts, is there a way to resolve them all by just telling SVN to keep the version that is in the repository? Unfortunately, we're still using 1.4.


回答1:


I believe if you run the command svn revert . -R, you basically undo all changes to your working copy. If there are conflicted files, SVN tosses out your changes and uses the revision you've most recently updated to.

Of course, this also gets rid of changes to files that aren't conflicted.




回答2:


svn update . --accept theirs-full

Or is that not available in svn 1.4?

You could try and run the 1.5 client against a 1.4 server, might work.




回答3:


You can try

svn st | awk '/^C/ { print $2 }' | xargs svn revert

this revert all files with conflicts



来源:https://stackoverflow.com/questions/1109723/subversion-resolve-all-conflicts-quickly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!