修改Perforce /P4 提交的代码ChangeList (CL)的描述

本文介绍如何在P4中修改已提交代码的描述。通过编辑已提交的变更列表,可以轻松更正描述中的错误。前提是拥有相应的修改权限。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用P4提交代码时,如果不小心写错描述怎么修改呢?

选中所要修改Branch的History里某个changelist, 然后选中菜单栏中的Edit->Edit Submitted ChangeList ‘XXXXXX’ .

这里写图片描述

或者直接在ChangeList上右键选择:

这里写图片描述

然后在弹出的对话框中编辑,并apply即可

这里写图片描述

请注意检查自己的版本是否适合,我的版本如下:

这里写图片描述

当然,最重要的是你得有修改权限。

#------------------------------------------------------------------------------- # Sample /etc/perforce/p4dctl.conf file for p4dctl # # See 'man 5 p4dctl.conf' for more information #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- # Environment variables common to all servers #------------------------------------------------------------------------------- Environment { P4DEBUG = "server=3" # Embedded = requires quotes P4LOG = log P4CONFIG = .p4config } #------------------------------------------------------------------------------- # Sample server specifications #------------------------------------------------------------------------------- #p4d main #{ # Owner = perforce # Execute = /opt/perforce/sbin/p4d # Prefix = /var/lib/perforce/p4-main/main # Environment # { # P4ROOT = /home/perforce/p4-main # P4JOURNAL = journal # P4PORT = ssl:1666 # P4SSLDIR = ssl # PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin # } #} #p4d test #{ # Owner = tony # Execute = /opt/perforce/sbin/p4d # Enabled = false # Environment # { # P4ROOT = /home/tony/p4tmp # P4JOURNAL = journal # P4PORT = 1667 # PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin # } #} #p4p india #{ # Owner = perforce # Execute = /opt/perforce/sbin/p4p # Environment # { # P4PCACHE = /home/perforce/p4p-india # P4TARGET = india.mycorp.com # P4PORT = 1777 # PATH = /bin:/usr/bin:/usr/local/bin:/opt/perforce/sbin # } #} #------------------------------------------------------------------------------- # Or you can include from external files and directories # # For example: # # include /etc/perforce/p4d-main.conf (includes a specified file) # include /etc/perforce/p4dctl.d (includes *.conf files from the directory) #------------------------------------------------------------------------------- # By default, include all *.conf files in /etc/perforce/p4dctl.conf.d include /etc/perforce/p4dctl.conf.d
06-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值