对基于 DVCS 中存储的源代码构建的程序集进行版本控制
我要做的是能够告诉用于构建程序集的变更集。
使用 Subversion 一切都很好而且简单:将存储库修订号直接嵌入到程序集版本中(例如 1.0.5873
,其中 5873
是修订号)。
然而,DVCS 没有可靠的人类可读修订号,但它们确实有长十六进制字符串的变更集。这些显然不适合任何版本号。
所以问题是:当前对此类程序集进行版本控制的最佳实践是什么?
What I'm up to is to have an ability to tell a changeset which was used to build an assembly.
With Subversion it's all nice and simple: embed repository revision number straight into assembly version (like 1.0.5873
with 5873
being revision number).
DVCSes, however, do not have reliable human-readable revision numbers but they do have changesets which are long hexadecimal strings. Those obviously don't fit into any version number.
So the question is: what's the current best practice to version such assemblies?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,您会使用 git describe 来获取此类人类可读的信息。
作为插图,请参阅:
Usually, you would use
git describe
to get that kind of human-readable information.As illustrations, see: