当前位置:网站首页>基于SVN分支开发模式流程浅析
基于SVN分支开发模式流程浅析
2022-07-03 15:04:00 【星哥玩云】
在使用svn多人协作开发式一般采取的工作方式如下:
检出库 创建并维护开发分支 定期将主干代码合并回分支,保证数据完整性,避免最终合并回主干时出现冲突 分支测试 将分支合并回主干 主干提交、部署 多人协作时,第三步是最经常出问题的地方,严重的甚至会导致代码被覆盖回滚情况,其原因在于分支管理者创建分支后不再或长时间从主干拉回数据,导致最终合并回主干时分支的文件甚至结构都与主干有较大差别,产生较多冲突。需要人手解决,浪费了很多时间。
针对这个问题,是否有一种方案可以在分支提交时即检测该分支最后一次合并的版本是否与主干版本相符,如果不符则不允许提交,强制要求大家养成从主干拉数据的习惯呢?如果可以实现,那么在分支合并回主干时将几乎可以消灭掉冲突。
当前思路主要有3种:
1. 不间强调使用SVN时要经常从主干同步代码到分支。该方案缺点很明显,完全依赖人工,不可信。
2. 在trunk里单独维护一个带最新版本号的readme.md,每次更新trunk时更新该版本到更新的版本号。此后合并分支回主干时判断下分支时的readme.md是否和主干里的readme.md保持一致,若小于主干,则强制同步主干代码到分支。 该方案缺点是需要每次更新主干代码时都要强制手工维护版本号,容易出现低级错误——更新trunk时忘记更新readme.md里的版本号等情况。
3. SVN本身记录版本更新信息,可以通过在服务器端监控主干,判断提交前(pre-commit)检测是否有分支最后一次合并版本号小于主干版本号,如果小于则不允许提交,强制要求先从主干合并。此方案是一种相对完美的方案。
边栏推荐
- Global and Chinese market of air cargo logistics 2022-2028: Research Report on technology, participants, trends, market size and share
- Byte practice plane longitude 2
- 406. Reconstruct the queue according to height
- 什么是embedding(把物体编码为一个低维稠密向量),pytorch中nn.Embedding原理及使用
- SQL server安装位置改不了
- [Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
- PS tips - draw green earth with a brush
- [graphics] adaptive shadow map
- What is one hot encoding? In pytoch, there are two ways to turn label into one hot coding
- Global and Chinese market of optical fiber connectors 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
Finally, someone explained the financial risk management clearly
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
[graphics] efficient target deformation animation based on OpenGL es 3.0
什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
How to color ordinary landscape photos, PS tutorial
【Transform】【实践】使用Pytorch的torch.nn.MultiheadAttention来实现self-attention
What is machine reading comprehension? What are the applications? Finally someone made it clear
4-24--4-28
[ue4] geometry drawing pipeline
[ue4] Niagara's indirect draw
随机推荐
Search in the two-dimensional array of leetcode sword offer (10)
Tencent internship interview sorting
【pytorch学习笔记】Transforms
Write a 2-minute countdown.
4-20-4-23 concurrent server, TCP state transition;
5-1 blocking / non blocking, synchronous / asynchronous
CentOS7部署哨兵Redis(带架构图,清晰易懂)
Global and Chinese market of Bus HVAC systems 2022-2028: Research Report on technology, participants, trends, market size and share
App全局异常捕获
Global and Chinese market of iron free motors 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets for transparent OLED displays 2022-2028: Research Report on technology, participants, trends, market size and share
Devaxpress: range selection control rangecontrol uses
Remote server background hangs nohup
4-33--4-35
Web server code parsing - thread pool
Global and Chinese market of lighting control components 2022-2028: Research Report on technology, participants, trends, market size and share
远程服务器后台挂起 nohup
[pytorch learning notes] datasets and dataloaders
什么是one-hot encoding?Pytorch中,将label变成one hot编码的两种方式
[transform] [NLP] first proposed transformer. The 2017 paper "attention is all you need" by Google brain team