当前位置:网站首页>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 .
边栏推荐
- redis单线程问题强制梳理门外汉扫盲
- Using TCL (tool command language) to manage Tornado (for VxWorks) can start the project
- XWiki安装使用技巧
- Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
- Using notepad++ to build an arbitrary language development environment
- 零拷贝底层剖析
- Byte practice plane longitude 2
- 【日常训练】395. 至少有 K 个重复字符的最长子串
- Matplotlib drawing label cannot display Chinese problems
- SQL server安装位置改不了
猜你喜欢
Mysql报错:[ERROR] mysqld: File ‘./mysql-bin.010228‘ not found (Errcode: 2 “No such file or directory“)
Didi off the shelf! Data security is national security
[ue4] material and shader permutation
Influxdb2 sources add data sources
[ue4] cascading shadow CSM
视觉上位系统设计开发(halcon-winform)-4.通信管理
Byte practice surface longitude
链表有环,快慢指针走3步可以吗
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Unity hierarchical bounding box AABB tree
随机推荐
Vs+qt application development, set software icon icon
Besides lying flat, what else can a 27 year old do in life?
【可能是全中文网最全】pushgateway入门笔记
[cloud native training camp] module 7 kubernetes control plane component: scheduler and controller
Kubernetes帶你從頭到尾捋一遍
Global and Chinese market of postal automation systems 2022-2028: Research Report on technology, participants, trends, market size and share
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team
什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
Vs+qt multithreading implementation -- run and movetothread
【pytorch学习笔记】Transforms
Global and Chinese markets for infrared solutions (for industrial, civil, national defense and security applications) 2022-2028: Research Report on technology, participants, trends, market size and sh
4-20-4-23 concurrent server, TCP state transition;
[transformer] Introduction - the original author of Harvard NLP presented the annotated transformer in the form of line by line implementation in early 2018
Functional modules and application scenarios covered by the productization of user portraits
What is embedding (encoding an object into a low dimensional dense vector), NN in pytorch Principle and application of embedding
Troubleshooting method of CPU surge
Matplotlib drawing label cannot display Chinese problems
There are links in the linked list. Can you walk three steps faster or slower
使用JMeter对WebService进行压力测试
Leetcode sword offer find the number I (nine) in the sorted array