SVN:分支合并到主干


合并日志:

--- Merging r173674 through r175986 into '.':
   C src/test/java/com/test/rigel/sandbox/organization/service/HeartBeatServiceTest.java
U    src/test/java/com/test/rigel/sandbox/core/auth/OrgAuthServiceTest.java
U    src/main/java/com/test/rigel/sandbox/core/auth/service/OrgAuthService.java
U    src/main/java/com/test/rigel/sandbox/core/auth/service/impl/OrgAuthServiceImpl.java
U    src/main/java/com/test/rigel/sandbox/core/auth/vo/OrganizationVo.java
Conflict discovered in 'src/main/java/com/test/rigel/sandbox/core/auth/filter/UserAuthFilter.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    src/main/java/com/test/rigel/sandbox/core/auth/filter/UserAuthFilter.java
U    src/main/java/com/test/rigel/sandbox/core/conf/SystemConf.java
U    src/main/java/com/test/rigel/sandbox/core/web/action/GenericAction.java
   C src/main/java/com/test/rigel/sandbox/portal/web/action/ErrorAction.java
U    src/main/java/com/test/rigel/sandbox/portal/web/action/JumpAction.java
Conflict discovered in 'src/main/java/com/test/rigel/sandbox/portal/web/action/IndexAction.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    src/main/java/com/test/rigel/sandbox/portal/web/action/IndexAction.java
   C src/main/java/com/test/rigel/sandbox/portal/service/JumpService.java
   C src/main/java/com/test/rigel/sandbox/portal/service/impl/JumpServiceImpl.java
Conflict discovered in 'src/main/java/com/test/rigel/sandbox/portal/cons/ErrorCode.java'.
Select: (p) postpone, (df) diff-full, (e) edit,
        (mc) mine-conflict, (tc) theirs-conflict,
        (s) show all options: p
C    src/main/java/com/test/rigel/sandbox/portal/cons/ErrorCode.java
   C src/main/java/com/test/rigel/sandbox/task/web/action/LoginCountTaskAction.java
U    src/main/java/com/test/rigel/sandbox/organization/web/action/HeartBeatAction.java
U    src/main/java/com/test/rigel/sandbox/organization/web/model/OrganizationModel.java
U    src/main/java/com/test/rigel/sandbox/organization/bo/Organization.java
U    src/main/java/com/test/rigel/sandbox/organization/service/impl/HeartBeatServiceImpl.java
U    src/main/resources/conf/applicationContext-sysConfig.xml
U    src/main/resources/com/test/rigel/sandbox/organization/bo/conf/OrganizationMapper.xml
U    WebContent/src/orgsMgt/orgConfig.js
U    WebContent/entry/orgsMgt/orgs.vm
Summary of conflicts:
  Text conflicts: 3
  Tree conflicts: 5


步骤:

1.先把主干代码下载到本地
    svn co https://svn.test.com/app/ecom/shifen/sf-crm/trunk/test


2.进入主干目录

  cd test

3.svn merge 分支目录    
    svn merge https://svn.test.com/app/ecom/shifen/sf-crm/branches/test/test_1-1-0_BRANCH


4.遇到冲突, 请见合并日志,选择"p",记下出冲突的文件,人工编辑
 4.1 比如Index.action出冲突了,vi Index.action
 4.2 vi完成以后,删除冲突的文件 rm -f Index.action.*
 4.3 解决冲突 svn resolve --accept working IndexAction.java

4.5 针对树的冲突,则直接(看情况) svn resolve --accept working ......



5.解决完所有冲突后,再提交svn ci -m "*****"

6.svn diff 来查看是否还有冲突

7.到websvn.***.com去对比代码

8.打tag

   8.1 一个分支只能有一个tag所以如果当前分支的tag存在,则要执行删除命令删除后再打tag
         svn rm https://svn.test.com/app/ecom/shifen/sf-crm/tags/sandbox/test_1-1-1-MERGE_PD_BL -m "delete tag"
    8.2 如果没有tag,则直接打就行:

    svn cp    https://svn.test.com/app/ecom/shifen/sf-crm/trunk/sandbox   

                    https://svn.test.com/app/ecom/shifen/sf-crm/tags/sandbox/sandbox_1-1-0-MERGE_PD_BL/    -m  "merge branch_1-1-0-1 to Main"


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值