当前位置:网站首页>[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)
边栏推荐
- 找工作 4 个月, 面试 15 家,拿到 3 个 offer
- GBase 8a MPP集群扩容实战
- Understand chisel language. 22. Chisel sequential circuit (II) -- detailed explanation of chisel counter: counter, timer and pulse width modulation
- 深度剖析分库分表最强辅助Sharding Sphere
- 走向人生巅峰....
- [SCM]源码管理 - perforce 分支的锁定
- Qt | 关于Qt Creator打开项目编译不过的问题
- Write yourself a year-end summary. Happy New Year!
- Introduction to memory wall
- 省应急管理厅:广州可争取推广幼儿应急安全宣教经验
猜你喜欢

刷题《剑指Offer》day03

深入浅出详解Knative云函数框架!

会议OA项目之会议排座功能&&会议送审的实现

Interview Essentials: shrimp skin server 15 consecutive questions

I haven't delivered books for a long time, and I feel uncomfortable all over

吃透Chisel语言.22.Chisel时序电路(二)——Chisel计数器(Counter)详解:计数器、定时器和脉宽调制

Quickly apply JS to customize the effect of lunar phase change

【云原生 • DevOps】一文掌握容器管理工具 Rancher

Esp8266 Arduino programming example PWM

What happens if the MySQL disk is full? I really met you!
随机推荐
July training (day 09) - two point search
Nacos configuration center dynamically refreshes the data source
When I went to oppo for an interview, I got numb
35 spark streaming backpressure mechanism, spark data skew solution and kylin's brief introduction
圆环工件毛刺(凸起)缺口(凹陷)检测案例
July training (day 14) - stack
吃透Chisel语言.26.Chisel进阶之输入信号处理(二)——多数表决器滤波、函数抽象和异步复位
中高级试题」:MVCC 实现原理是什么?
Come on, chengxujun
Intermediate and advanced test questions ": what is the implementation principle of mvcc?
wordpress禁止指定用户名登录或注册插件【v1.0】
Google Earth engine app - print the coordinates of points to the console and map, set the style and update it
The command prompt cannot start mysql, prompting system error 5. Access denied. terms of settlement
年底了,我教你怎么拿高绩效!
刷题《剑指Offer》day03
QT | about the problem that QT creator cannot open the project and compile it
LeetCode.814. 二叉树剪枝____DFS
July training (day 07) - hash table
July training (day 06) - sliding window
监控神器:Prometheus 轻松入门,真香!