Perforce Trigger,commit上的格式(变更符合触发器)
我正在尝试实现一个将使用clang-format的触发器触发器,以查看是否已正确格式化了文件,这些文件已提交给Perforce Depot,并将它们发送到新的更改列表,并显示一条消息,表明需要格式文件。 我不完全相信这是可能的。我的脚本从命令行中运作良好(我使用P4更改来创建新的CL,P4重新打开,因此请在此处发送所需的文件,而P4 Change -D将其删除,如果剩下空白),但是我唯一能够创建一个触发调用的更改列表是当我将P4提交到脚本时(递归创建了3500多个变更名单)。有谁知道是否可以从变更符号触发器中创建变更列表?
I'm trying to implement a Perforce change-content trigger that will use clang-format to see if files have been properly formatted that are submitted to the Perforce Depot and will send them to a new change-list with a message indicating the need to format file.
I'm not fully confident that it is even possible. My script works great from the command line (I use p4 change to create a new CL, p4 reopen so send desired files there, and p4 change -d to delete it if left empty), but the only time I was able to create a change list from the trigger call was when I included a p4 submit to the script (which recursively created 3500+ change-lists). Does anyone know if it is possible to create a change-list from the change-content trigger?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论