新的功能分支完成后要把分支和并到主干
1 查看新旧版本号
使用svn log --stop-on-copy
2 使用合并命令
svn merge -r 旧版本号:新版本号 source[即来自版本的svn地址] -m "提交信息"
3 出现冲突
出现冲突后,一般习惯于选择postpone来集中处理:
对于一般的text conflicts
需要找到服务器端提交代码的同伴来协商看看需要保留哪段代码,删减完成后执行 svn resolved 文件名就可以了;
对于tree conflits
“svn local delete, incoming delete upon update”
# 1.In your working directory, recreate that conflicting file:
$ touch foo
# 2.Revert that file to the state SVN likes (that means deleted):
$ svn revert foo
# 3.Now delete that file:
$ rm foo
# 4.Conflict resolved:
$ svn st
# Done.
“local edit incoming delete upon merge”
1 svn resolved 文件名
2 手动删除文件