有没有办法在 Mercurial 中设置自定义文件属性?
Mercurial 中是否有类似于 subversion 的 propset 命令的功能?
我真正想要的是有关每个文件的信息,表明它是否经过代码审查和质量检查。当产品发布时,提示中的每个文件都将设置这些属性/特性。
Is there a feature in mercurial similar to subversion's propset command?
What I really want is info about each file indicating whether it has code reviewed and QA'd. When a product is released every file in the tip will have these attributes/properties set.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有。 Mercurial 中的提交是不可删除的,因此任何命令都无法返回并更改它们。属性必须存储在单独的元数据文件中,该文件也将进行版本跟踪(有点像 .hgtags 文件)。人们可以构建一个扩展来做到这一点,但每次属性更改都会在您的历史记录中添加另一个变更集。
There is not. Commits in mercurial are indelible, so no command can go back and alter them. Properties would have to be stored in separate meta-data file(s) which would also be version tracked (sort of like the .hgtags file). One could build an extension to do that but every property alteration would put another changeset in your history.