Bazaar 命令 revno 和 version-info 不一致

发布于 2024-09-30 12:06:43 字数 895 浏览 0 评论 0原文

如果您将工作树更新到较早的版本,则 bzr revno 会报告存储库中的最新版本,而不是工作树的版本。但是,bzr version-info 会报告工作树的修订版本。为什么有区别?

> bzr up
 M  file1.txt
 M  file2.txt
All changes applied successfully.                                              
Updated to revision 1000 of branch bzr+ssh://bazaar.launchpad.net/~foo/bar/baz
> bzr up -r969
 M  file2.txt
All changes applied successfully.                                              
Updated to revision 969 of branch bzr+ssh://bazaar.launchpad.net/~foo/bar/baz
> bzr revno
1000
> bzr version-info
revision-id: [email protected]
date: 2010-10-14 12:58:08 +0530
build-date: 2010-11-05 11:03:20 -0700
revno: 969
branch-nick: baz

If you update your working tree to an earlier revision, then bzr revno reports the latest revision in the repository, not the revision of your working tree. bzr version-info however, reports the revision of your working tree. Why the difference?

> bzr up
 M  file1.txt
 M  file2.txt
All changes applied successfully.                                              
Updated to revision 1000 of branch bzr+ssh://bazaar.launchpad.net/~foo/bar/baz
> bzr up -r969
 M  file2.txt
All changes applied successfully.                                              
Updated to revision 969 of branch bzr+ssh://bazaar.launchpad.net/~foo/bar/baz
> bzr revno
1000
> bzr version-info
revision-id: [email protected]
date: 2010-10-14 12:58:08 +0530
build-date: 2010-11-05 11:03:20 -0700
revno: 969
branch-nick: baz

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

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

发布评论

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

评论(1

无需解释 2024-10-07 12:06:43

结果 bzr revno 命令有两种模式:存储库和树。您可以执行 bzr revno --tree 来查找工作树的修订版本。

Turns out the bzr revno command has two modes: repository and tree. You can execute bzr revno --tree to find the revision of the working tree.

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