当前位置:网站首页>Analysis of development mode process based on SVN branch
Analysis of development mode process based on SVN branch
2022-07-03 15:11:00 【Brother Xing plays with the clouds】
In the use of svn The general working mode of multi person collaborative development is as follows :
Check out Library Create and maintain development branches Merge the trunk code back into branches on a regular basis , Ensure data integrity , Avoid conflicts when merging back to the trunk Branch test Merge branches back into the trunk Trunk submit 、 Deploy When many people work together , The third step is the most common problem , Seriously, it may even cause the code to be overwritten and rolled back , The reason is that the branch manager no longer pulls back data from the trunk or for a long time after creating a branch , As a result, the file and even structure of the branch are quite different from that of the trunk when it is finally merged back to the trunk , Generate more conflicts . It needs to be solved manually , A lot of time was wasted .
In response to this question , Is there a scheme to detect whether the last merged version of the branch is consistent with the trunk version when the branch is submitted , If not, it is not allowed to submit , Force everyone to form the habit of pulling data from the trunk ? If it can be achieved , Then the conflict will almost be eliminated when the branches merge back to the trunk .
The current thinking mainly includes 3 Kind of :
1. Do not emphasize the use SVN Always synchronize code from the trunk to the branch . The disadvantages of this scheme are obvious , Rely entirely on labor , Unbelievable .
2. stay trunk There is a separate one with the latest version number in readme.md, Each update trunk Update this version to the updated version number . After that, when merging and branching back to the trunk, judge the next branch readme.md Whether it is connected with that in the trunk readme.md bring into correspondence with , If it is smaller than the trunk , Force synchronization of trunk code to branch . The disadvantage of this scheme is that the version number needs to be manually maintained every time the trunk code is updated , Prone to low-level errors —— to update trunk Forget to update when readme.md Version number in .
3. SVN It records version update information , It can be done by The server End monitoring backbone , Judge before submitting (pre-commit) Check whether the last merged version number of branches is less than the trunk version number , If it is less than, it is not allowed to submit , It is mandatory to merge from the trunk first . This scheme is a relatively perfect scheme .
边栏推荐
- Web server code parsing - thread pool
- 什么是Label encoding?one-hot encoding ,label encoding两种编码该如何区分和使用?
- [ue4] material and shader permutation
- What is machine reading comprehension? What are the applications? Finally someone made it clear
- Influxdb2 sources add data sources
- CentOS7部署哨兵Redis(带架构图,清晰易懂)
- 2022/02/14
- Remote server background hangs nohup
- 视觉上位系统设计开发(halcon-winform)-3.图像控件
- Kubernetes vous emmène du début à la fin
猜你喜欢

Série yolov5 (i) - - netron, un outil de visualisation de réseau

Vs+qt multithreading implementation -- run and movetothread

Pytoch deep learning and target detection practice notes

C string format (decimal point retention / decimal conversion, etc.)

Matplotlib drawing label cannot display Chinese problems

What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry

高并发下之redis锁优化实战

4-29——4.32
![[engine development] rendering architecture and advanced graphics programming](/img/a4/3526a4e0f68e49c1aa5ce23b578781.jpg)
[engine development] rendering architecture and advanced graphics programming

视觉上位系统设计开发(halcon-winform)-5.相机
随机推荐
MySQL reports an error: [error] mysqld: file '/ mysql-bin. 010228‘ not found (Errcode: 2 “No such file or directory“)
. Net six design principles personal vernacular understanding, please correct if there is any error
基于SVN分支开发模式流程浅析
Byte practice surface longitude
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share
SQL server安装位置改不了
Tensor ellipsis (three points) slice
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
Open under vs2019 UI file QT designer flash back problem
5-1 blocking / non blocking, synchronous / asynchronous
TPS61170QDRVRQ1
el-switch 赋值后状态不变化
【可能是全中文网最全】pushgateway入门笔记
阿特拉斯atlas扭矩枪 USB通讯教程基于MTCOM
解决pushgateway数据多次推送会覆盖的问题
【日常训练】395. 至少有 K 个重复字符的最长子串
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
Didi off the shelf! Data security is national security
Halcon与Winform学习第一节
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team