SVN的分支、主干、标记和合并
网上搜索了一下,参考别人的BLOG:
http://johnnhe.iteye.com/blog/285588
1.建立分支
team---->分支/标记---->打开分支/标记建立对话框
资源库
到URL: http://192.168.1.199/svn/repos/branches/projectName
这里填写要建立的分支的路径,勾上 Create any intermediate folders that are missing
Next------->Next
在注释框中加入这个分支的注释:
Finish
如此,分支建立完成。
2.建立不同的eclipse workspace
File--swith workspace--other
在打开的窗口里新建目录并指定其为工作空间,确定,则新建工作空间完成。eclipse会重启更换工作空间
3.在dev_branch和prj001都修改了的情况下做合并操作
参考官方文档
http://desktop-eclipse.open.collab.net/servlets/ProjectProcess?pageID=MEuUjb&freeformpage=Merge%20Client
[Team] --- [Merge]
Use the default settings
[Next]
if Working copy at a single revision turns Red, you can click [Update] first.
Merge from: /branches/projects/prj001
[Next]
All choose "Mark conflicts, let me resolve them later"
[Finish]
After that we will get a Merge Result:
And we double click the red one to solve the conflicts.
4.tag标记
和建立分支类似,操作完全一样,只是建立的路径不同而已。
网上搜索了一下,参考别人的BLOG:
http://johnnhe.iteye.com/blog/285588
1.建立分支
team---->分支/标记---->打开分支/标记建立对话框
资源库
到URL: http://192.168.1.199/svn/repos/branches/projectName
这里填写要建立的分支的路径,勾上 Create any intermediate folders that are missing
Next------->Next
在注释框中加入这个分支的注释:
Finish
如此,分支建立完成。
2.建立不同的eclipse workspace
File--swith workspace--other
在打开的窗口里新建目录并指定其为工作空间,确定,则新建工作空间完成。eclipse会重启更换工作空间
3.在dev_branch和prj001都修改了的情况下做合并操作
参考官方文档
http://desktop-eclipse.open.collab.net/servlets/ProjectProcess?pageID=MEuUjb&freeformpage=Merge%20Client
[Team] --- [Merge]
Use the default settings
[Next]
if Working copy at a single revision turns Red, you can click [Update] first.
Merge from: /branches/projects/prj001
[Next]
All choose "Mark conflicts, let me resolve them later"
[Finish]
After that we will get a Merge Result:
And we double click the red one to solve the conflicts.
4.tag标记
和建立分支类似,操作完全一样,只是建立的路径不同而已。