开发者

Is there a way to set custom file properties in mercurial?

开发者 https://www.devze.com 2022-12-23 18:01 出处:网络
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

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 f开发者_如何学运维ile in the tip will have these attributes/properties set.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消