• svn使用笔记


    以main模块为例

    1. 从主干拉去新分支

    svn cp http://svn.rong360.com/svn/main/trunk http://svn.rong360.com/svn/main/branches/branchYYYYMMDD_xx -m 'xx'

    2. 检出到本地

    svn co http://svn.rong360.com/svn/main/branches/branchYYYYMMDD_xx

    3. 开发

    4. 提交代码到分支   svn ci -m ' '

    5. 合并主干文件  svn merge  http://svn.rong360.com/svn/main/trunk

    6. 解决冲突,提交代码到分支

    7. rdiff  填写reviewer (或提交测试)

    8. 测试通过后根据要求再次合并主干代码 

    9. 填写上线单  分支上线,部署,上线检查,上线完成确认

    10. 切换分支代码到主干  svn merge --reintegrate http://svn.rong360.com/svn/main/branches/branchYYYYMMDD_xx

    11. 解决问题,提交代码到主干

    [rong@rd-dev22 mis]$ svn ci

    Log message unchanged or not specified
    (a)bort, (c)ontinue, (e)dit:
    c
    Sending controller/PushplatformController.php
    Transmitting file data .
    Committed revision 2907.
    [rong@rd-dev22 mis]$ svn merge http://svn.rong360.com/svn/mis/trunk
    [rong@rd-dev22 mis]$ rdiff
    branchUrl:http://svn.rong360.com/svn/mis/branches/branch20173020_app_push
    trunkUrl : http://svn.rong360.com/svn/mis/trunk/@2906
    Commit message has errors:

    - Invalid or missing field "Test Plan": You must provide a test plan.
    Describe the actions you performed to verify the behavior of this
    change.

    You must resolve these errors to continue.

    Do you want to edit the message? [Y/n] y

    Linting...
    No lint engine configured for this project.
    Running unit tests...
    No unit test engine is configured for this project.
    Created a new Differential revision:
    Revision URI: http://codereview.rong360.com/D8218

    Included changes:
    M controller/PushplatformController.php
    [rong@rd-dev22 mis]$ ^C
    [rong@rd-dev22 mis]$ svn sw http://svn.rong360.com/svn/mis/trunk
    U controller/PushplatformController.php
    Updated to revision 2908.
    [rong@rd-dev22 mis]$ svn merge --reintegrate http://svn.rong360.com/svn/mis/branches/branch20173020_app_push
    svn: Cannot reintegrate into a working copy that has local modifications
    [rong@rd-dev22 mis]$ svn st
    M .
    [rong@rd-dev22 mis]$ svn info
    Path: .
    URL: http://svn.rong360.com/svn/mis/trunk
    Repository Root: http://svn.rong360.com/svn/mis
    Repository UUID: 1a2d6029-1b22-4e0e-a00e-c5f2e95b9dac
    Revision: 2908
    Node Kind: directory
    Schedule: normal
    Last Changed Author: suoyi
    Last Changed Rev: 2904
    Last Changed Date: 2017-03-17 11:07:10 +0800 (Fri, 17 Mar 2017)

    [rong@rd-dev22 mis]$ svn revert .
    Reverted '.'
    [rong@rd-dev22 mis]$ svn merge --reintegrate http://svn.rong360.com/svn/mis/branches/branch20173020_app_push
    --- Merging differences between repository URLs into '.':
    U controller/PushplatformController.php
    [rong@rd-dev22 mis]$ svn ci

    Log message unchanged or not specified
    (a)bort, (c)ontinue, (e)dit:
    c
    Sending .
    Sending controller/PushplatformController.php
    Transmitting file data .
    Committed revision 2909.
    [rong@rd-dev22 mis]$ svn st
    [rong@rd-dev22 mis]$ svn info
    Path: .
    URL: http://svn.rong360.com/svn/mis/trunk
    Repository Root: http://svn.rong360.com/svn/mis
    Repository UUID: 1a2d6029-1b22-4e0e-a00e-c5f2e95b9dac
    Revision: 2909
    Node Kind: directory
    Schedule: normal
    Last Changed Author: frank
    Last Changed Rev: 2909
    Last Changed Date: 2017-03-20 14:17:39 +0800 (Mon, 20 Mar 2017)

    [rong@rd-dev22 mis]$

  • 相关阅读:
    ASP.NET程序中常用的三十三种代码【转】
    BTree,BTree,B+Tree,B*Tree都是什么
    调用Google地图
    JS特效总结
    2005 加入博客园
    .net Windows服务程序安装与安装程序的制作
    七夕,爱似流年
    JS+CSS仿魔兽游戏进入进度条特效
    常用正则表达式
    Google翻译网站添加Google翻译,让老外也看的懂你的网站
  • 原文地址:https://www.cnblogs.com/hlongch/p/6542705.html
Copyright © 2020-2023  润新知