对基于 DVCS 中存储的源代码构建的程序集进行版本控制

发布于 2024-12-06 23:20:47 字数 233 浏览 6 评论 0原文

我要做的是能够告诉用于构建程序集的变更集。

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云朵有点甜 2024-12-13 23:20:47

通常,您会使用 git describe 来获取此类人类可读的信息。

作为插图,请参阅:

Usually, you would use git describe to get that kind of human-readable information.

As illustrations, see:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文