当前位置:网站首页>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 .
边栏推荐
- 开启 Chrome 和 Edge 浏览器多线程下载
- Global and Chinese markets for indoor HDTV antennas 2022-2028: Research Report on technology, participants, trends, market size and share
- [cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
- Tencent internship interview sorting
- Global and Chinese markets for ionization equipment 2022-2028: Research Report on technology, participants, trends, market size and share
- Global and Chinese market of transfer case 2022-2028: Research Report on technology, participants, trends, market size and share
- Can‘t connect to MySQL server on ‘localhost‘
- Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
- 5.4-5.5
- Neon global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
![[probably the most complete in Chinese] pushgateway entry notes](/img/5a/6dcb75f5d713ff513ad6842ff53cc3.png)
[probably the most complete in Chinese] pushgateway entry notes

北京共有产权房出租新规实施的租赁案例

The state does not change after the assignment of El switch

4-29——4.32

【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器

4-33--4-35

Halcon与Winform学习第二节

Yolov5 series (I) -- network visualization tool netron

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

什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
随机推荐
Byte practice surface longitude
Idea does not specify an output path for the module
B2020 points candy
[combinatorics] permutation and combination (set permutation, step-by-step processing example)
The first character of leetcode sword offer that only appears once (12)
Can‘t connect to MySQL server on ‘localhost‘
Basic SQL tutorial
Stress test WebService with JMeter
Halcon与Winform学习第一节
Chapter 14 class part 1
视觉上位系统设计开发(halcon-winform)-6.节点与宫格
C string format (decimal point retention / decimal conversion, etc.)
Yolov5系列(一)——网络可视化工具netron
【云原生训练营】模块七 Kubernetes 控制平面组件:调度器与控制器
解决pushgateway数据多次推送会覆盖的问题
Yolov5 advanced seven target tracking latest environment construction (II)
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
[ue4] material and shader permutation
Halcon与Winform学习第二节
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller