Bazaar 命令 revno 和 version-info 不一致
如果您将工作树更新到较早的版本,则 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果 bzr revno 命令有两种模式:存储库和树。您可以执行 bzr revno --tree 来查找工作树的修订版本。
Turns out the
bzr revno
command has two modes: repository and tree. You can executebzr revno --tree
to find the revision of the working tree.