当前位置:网站首页>[scm] source code management - lock of perforce branch
[scm] source code management - lock of perforce branch
2022-07-27 09:51:00 【51CTO】
perforce Locking of branches (Perforce branch locking)
Usually in some milestone Of build When or some branch The life cycle of , We all need to lock branch To prohibit yes branch Modification of .
There are two ways to lock perforce branch:
1) Permissions on the table (protection table)
Usually we use a group To manage a branch Authority . For example, the default is as follows :
write group envision * //dev/envision/esi/...
When We need to lock in branch //dev/envision/esi/... when , Can be in p4admin Of GUI Modify in the management tool protection table Or add a new line at the end lock branch, for example read group envision * //dev/envision/esi/...
It can also be used in scripts p4 protect To modify the permission table , To lock or unlock a branch.
2)triggers
also You can use one trigger To achieve locking branch Purpose . this trigger The execution process is : When there is changelist when , Check whether the included files belong to designated branch, If it belongs to the one to be locked branch Then refuse to submit , So as to achieve lock branch Purpose . All to lock Of branches It can be put in a txt file , then trigger By checking this txt To get those branches want lock, When you need to lock new branch, Just add it here txt Medium will do .
Use trigger The shortcomings of the method add all submit Time for .
End !
author :iTech
WeChat official account : cicdops
github: https://github.com/cicdops/cicdops
![[SCM] Source code management - perforce Locking of branches _ Management tools](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
边栏推荐
- July training (day 11) - matrix
- 中高级试题」:MVCC 实现原理是什么?
- Towards the peak of life
- 并发之线程状态转换
- LeetCode.565. 数组嵌套____暴力dfs->剪枝dfs->原地修改
- 监控神器:Prometheus 轻松入门,真香!
- XML overview
- C# 给Word每一页设置不同文字水印
- Google Earth engine app - print the coordinates of points to the console and map, set the style and update it
- At the end of the year, I'll teach you how to get high performance!
猜你喜欢

Exercises --- quick arrangement, merging, floating point number dichotomy

九种方式,教你读取 resources 目录下的文件路径

Easy to understand! Graphic go synergy principle and Practice

吃透Chisel语言.24.Chisel时序电路(四)——Chisel内存(Memory)详解

Looking for a job for 4 months, interviewing 15 companies and getting 3 offers

In depth analysis, sub database and sub table are the most powerful auxiliary sharding sphere
![[SCM]源码管理 - perforce 分支的锁定](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
[SCM]源码管理 - perforce 分支的锁定

安装了HAL库如何恢复原来的版本

Voice live broadcast system - Principles to be followed in developing push notifications

为什么微服务一定要有API网关?
随机推荐
July training (day 06) - sliding window
July training (day 21) - heap (priority queue)
Review summary of engineering surveying examination
Go Basics - arrays and slices
The command prompt cannot start mysql, prompting system error 5. Access denied. terms of settlement
C # set different text watermarks for each page of word
【云原生 • DevOps】一文掌握容器管理工具 Rancher
[cloud native] how can I compete with this database?
Annotation and reflection
Brush the title "sword finger offer" day04
监控神器:Prometheus 轻松入门,真香!
注解与反射
npm常用命令
一骑入秦川——浅聊Beego AutoRouter是如何工作
GBase 8a MPP集群扩容实战
Towards the peak of life
Google Earth engine app - maximum image synthesis analysis using S2 image
GO基础知识—数组和切片
Talk about 10 scenarios of index failure. It's too stupid
吃透Chisel语言.24.Chisel时序电路(四)——Chisel内存(Memory)详解