Custom revision properties in Mercurial?

点点圈 提交于 2019-12-01 22:46:06
VonC

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.

Martin Geisler

Mercurial has not built-in way of managing properties in the way that Subversion has. It does have some infrastructure for it, though. You'll have to write an extension and decide if you want the meta data to live inside or outside the history:

  • Meta data outside of history: The bookmarks extension would be a good starting point since it already shows you how to manage out-of-history meta data and how to move such data around on push and pull.

  • Meta data in the history: When the data is part of the history, things are simpler for your extension. The transplant extension is an example of an extension that embeds extra meta data into changesets via the extra dictionary argument to the internal commit function.

I'm afraid I don't know about Git.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!