有没有办法在 Perforce 中添加自定义 RCS 关键字?
Perforce 支持各种 RCS 关键字,包括 $file$ 和 $version$。有没有办法添加自定义 RCS 关键字?
我想创建一个自定义关键字,以便在签入文件时,Perforce 将用自定义字符串替换该关键字。
e.g.
from: $customString$
to: This is a custom message
Perforce supports various RCS keywords including $file$ and $version$. Is there a way to add a custom RCS keyword?
I want to create a custom keyword so that when the file is checked in, Perforce will replace the keyword with a custom string.
e.g.
from: $customString$
to: This is a custom message
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,但我想如果您愿意的话,可以编写一个触发脚本来为您执行此操作。
http://www.perforce.com/perforce/doc。 current/manuals/cmdref/triggers.html
也许如果您进一步解释您想要实现的目标,他们可能会提出一些建议。
No, but I'd imagine its possible to write a trigger script to do this for you if you so wish.
http://www.perforce.com/perforce/doc.current/manuals/cmdref/triggers.html
Perhaps if you explain further what you are tring to achieve their might be some suggestions.