Mercurial中的自定义修订属性? [英] Custom revision properties in Mercurial?

查看:105
本文介绍了Mercurial中的自定义修订属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以为我的hg存储库设置一个自定义属性,以便我可以存储/检索每个修订版的值?就像东京的天气在提交时等等。

同样的git?

解决方案

这可能是一个工作:



在这两种情况下,所述钩子都会得到您需要的信息并更新一个负责保留该属性的特定文件。 p>

Can I setup a custom property for my hg repository so that I could store/retrieve its value for each revision? Like, weather in Tokyo at the time of commit, etc.

Same for git?

解决方案

This could be a job for:

In both cases, said hooks would get the information you need and update one specific file in charge of keeping that property.

这篇关于Mercurial中的自定义修订属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆