(CVS) 检测与标签/标签关联的文件何时发生更改

发布于 2024-09-15 15:23:35 字数 172 浏览 3 评论 0原文

如何检测开发人员何时更新与 CVS 中的标记/标签关联的文件,然后更改标记以指向新版本?用例是开发人员在签入和标记的文件经过同行评审和批准后、但在构建和发布之前秘密进行更改。部署。我想避免得到 &在两个不同的时间点比较所有文件。是否可以获得与标签关联的所有文件的校验和?

是的,我知道这个过程存在“挑战”。

How can I detect when a developer updates files associated with a tag/label in CVS, then changes the tag to point to the new versions? The use case is developers surreptitiously making changes after the checked-in and tagged files have been peer-reviewed and approved, but before they have been built & deployed. I would like to avoid getting & diffing all the files at two distinct points in time. Is it possible to get a checksum of all files associated with a tag?

Yes, I know there are "challenges" with the process.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原来是傀儡 2024-09-22 15:23:35

每当开发人员标记任何内容时,您都可以使用 CVS taginfo 挂钩来记录或发送电子邮件。 这个问题。这将使您了解谁在重新标记事物以及何时重新标记。

CVS 不提供文件校验和,但您当然可以添加校验和 taginfo 挂钩,并且输出可以附加到您的日志/电子邮件中。这里唯一需要警惕的是CVS关键字替换 。如果您完全使用它,那么任何简单的校验和都将毫无意义。

抛开技术细节不谈,这可能只是一个政策问题。如果您不希望开发人员重新标记事物(除非在特殊情况下),那么请将其制定为政策并让他们意识到这一点。确保有一个已知的流程来处理审查阶段后需要进行的代码更改。

You could use a CVS taginfo hook to either log or email whenever a developer tags anything. There is example usage in this question. This would give you some visibility on who is retagging things and when.

CVS does not provide checksumming of files but you could certainly add in a checksumming taginfo hook and the output could be appended to your log/email. The only thing to be wary of here is CVS keyword substitution. If you make use of that at all then any simple checksumming will be pointless.

Setting aside the technicalities, this may just be a policy issue. If you don't want your developers retagging things (except under exceptional circumstances) then make that the policy and make them aware of it. Make sure there is a known process for dealing with code changes that need to be made after the review stage.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文