当前位置:网站首页>[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)
边栏推荐
- A ride into Qinchuan -- a brief talk on how beego Autorouter works
- Looking for a job for 4 months, interviewing 15 companies and getting 3 offers
- Qt 学习(二) —— .pro文件详解
- TFlite 的简单使用
- Annotation and reflection
- Quickly apply JS to customize the effect of lunar phase change
- 吃透Chisel语言.25.Chisel进阶之输入信号处理(一)——异步输入与去抖动
- 关于getter/setter方法问题
- Come on, chengxujun
- [cloud native] how can I compete with this database?
猜你喜欢

Provincial Emergency Management Department: Guangzhou can strive to promote the experience of emergency safety education for children

NFT系统开发-教程

并发之park与unpark说明

GBase 8a MPP集群扩容实战

刷题《剑指Offer》day03

Monitoring artifact: Prometheus easy to get started, really fragrant!

深度剖析分库分表最强辅助Sharding Sphere

Sentinel ten thousand word tutorial | book delivery at the end of the text

When I went to oppo for an interview, I got numb

What age are you still using date
随机推荐
Google Earth engine app - maximum image synthesis analysis using S2 image
July training (the 26th day) - and check the collection
Brush the title "sword finger offer" day04
Brush the title "sword finger offer" day03
flash闪存使用和STM32CUBEMX安装教程【第三天】
[cloud native • Devops] master the container management tool rancher
Fundamentals of Materials Engineering - key points
July training (day 09) - two point search
Come on, chengxujun
Expose a technology boss from a poor family
MOS drive in motor controller
吃透Chisel语言.27.Chisel进阶之有限状态机(一)——基本有限状态机(Moore机)
通俗易懂!图解Go协程原理及实战
July training (day 11) - matrix
Interview Essentials: shrimp skin server 15 consecutive questions
原生input标签的文件上传
WordPress prohibits login or registration of plug-ins with a specified user name [v1.0]
Intermediate and advanced test questions ": what is the implementation principle of mvcc?
NPM common commands
拜托!面试请不要再问我 Ribbon 的架构原理