Perforce Trigger,commit上的格式(变更符合触发器)

发布于 2025-02-08 22:41:46 字数 271 浏览 1 评论 0原文

我正在尝试实现一个将使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文