集市和$Id$

发布于 2024-07-09 05:43:58 字数 157 浏览 7 评论 0原文

我的大多数源代码都在 subversion 中,我使用“$Id$”向这些源代码添加修订信息。 然后我可以轻松检查使用了哪些源(例如 --version 选项显示该信息)。

现在要用bazaar却找不到这样的功能。 bazaar 中是否有 svn '$Id$' 的等效项?

Most my sources are in subversion and I use '$Id$' to add revision information to those sources. Then I can easily check what sources were used (e.g.. --version option shows that info).

Now I'm going to use bazaar and I can't find such a functionality.
Is there any equivalent of svn '$Id$' in bazaar?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

巡山小妖精 2024-07-16 05:43:58

使用像 Bazaar 这样的 DSCM 工具来自动生成显示合理版本号的 Id 标签是不可能的,因为每个人的开发路线都可能与其他人不同。 因此,有人可以引用文件的版本“1.41”,但该文件的版本“1.41”是不同的。

基本上,$Id$ 对于 Bazaar、Git 和其他分布式源代码管理工具没有任何意义。

Having automatically generated Id tags that show a sensible version number is impossible to do with DSCM tools like Bazaar because everybody’s line of development can be different from all others. So somebody could refer to version “1.41” of a file but your version “1.41” of that file is different.

Basically, $Id$ does not make any sense with Bazaar, Git, and other distributed source code management tools.

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