当前位置:网站首页>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 .
边栏推荐
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- C string format (decimal point retention / decimal conversion, etc.)
- [graphics] adaptive shadow map
- Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Redis主从、哨兵、集群模式介绍
- 什么是Label encoding?one-hot encoding ,label encoding两种编码该如何区分和使用?
- SQL server installation location cannot be changed
- socket.io搭建分布式Web推送服务器
- ASTC texture compression (adaptive scalable texture compression)
- Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢

运维体系的构建

CentOS7部署哨兵Redis(带架构图,清晰易懂)

Redis主从、哨兵、集群模式介绍

QT program font becomes larger on computers with different resolutions, overflowing controls
![[opengl] advanced chapter of texture - principle of flowmap](/img/dd/6208122fcc578caaf098301b185e03.jpg)
[opengl] advanced chapter of texture - principle of flowmap

Yolov5系列(一)——网络可视化工具netron
![[graphics] hair simulation in tressfx](/img/41/cef55811463d3a25a29ddab5278af0.jpg)
[graphics] hair simulation in tressfx
![[engine development] in depth GPU and rendering optimization (basic)](/img/71/abf09941eb06cd91784df50891fe29.jpg)
[engine development] in depth GPU and rendering optimization (basic)

Halcon与Winform学习第二节

Zero copy underlying analysis
随机推荐
Leetcode sword offer find the number I (nine) in the sorted array
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Centos7 deployment sentry redis (with architecture diagram, clear and easy to understand)
QT program font becomes larger on computers with different resolutions, overflowing controls
高并发下之redis锁优化实战
Yolov5 series (I) -- network visualization tool netron
5-1 blocking / non blocking, synchronous / asynchronous
[ue4] cascading shadow CSM
视觉上位系统设计开发(halcon-winform)-1.流程节点设计
Unity hierarchical bounding box AABB tree
Apache ant extension tutorial
开启 Chrome 和 Edge 浏览器多线程下载
【可能是全中文网最全】pushgateway入门笔记
socket.io搭建分布式Web推送服务器
B2020 分糖果
What is label encoding? How to distinguish and use one hot encoding and label encoding?
Global and Chinese market of solder bars 2022-2028: Research Report on technology, participants, trends, market size and share
Besides lying flat, what else can a 27 year old do in life?
Global and Chinese markets for transparent OLED displays 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of marketing automation 2022-2028: Research Report on technology, participants, trends, market size and share