1、创建branch
svn copy http://svn.dev.your/repo/trunk/ http://svn.dev.your/repo/branch/ -m "SVN MESSAGE"
2、重命名brach
svn move http://svn.dev.your/repo/branch/ http://svn.dev.your/repo/branch-new/ -m "SVN MESSAGE"
3 、从 trunk 中 merge 改动到 branch
在 branch 的本地目录下执行:
svn merge -r 1001:1002 https://svn.dev.your/repo/trunk/src .
如果你checkin了一些文件到revision 1002,这个命令让你只将' -r 1001:1002'中checkin的改动merge到branch本地中。后面的url是trunk的地址。"."表示你想merge到当前目录下。如果你想在真正修改文件前看下有哪些改动,可以使用"--dry-run"选项。merge成功后,在你本地branch中已经修改了一些文件,下一步需要checkin。通常checkin的message中注明"Merge -r 1001:1002 from trunk to branch xxx"。
4、查看checkin的log
svn log --stop-on-copy http://svn.dev.your/repo/trunk/