gpt4 book ai didi

version-control - Bazaar:如何显示文件更改的历史记录?

转载 作者:行者123 更新时间:2023-12-04 07:20:03 24 4
gpt4 key购买 nike

嘿,我正在使用 bazaar 作为我的代码,我想显示对特定文件的更改历史记录,而不是显示对整个 bazaar 存储库的更改。我怎么能做到?

最佳答案

bzr blame <filename>将显示哪些行引入了哪些更改:

$ bzr blame Makefile
548 steve-b | #
| #
861 steve-b | OVERRIDE_TARBALL=yes
548 steve-b |
| include common/Make.rules
|
| DIRS=parser \
| profiles \
| utils \
| changehat/libapparmor \
| changehat/mod_apparmor \
| changehat/pam_apparmor \
| tests

如果你只想要提交信息, bzr log <filename>会告诉你:
$ bzr log Makefile 
------------------------------------------------------------
revno: 1828
tags: apparmor_2.7.0-beta2
committer: John Johansen <john.johansen@canonical.com>
branch nick: apparmor
timestamp: Thu 2011-09-15 13:28:01 -0700
message:
Remove extra space insert at from of ${TAG_VERSION} when doing the ~ to -
substitution.

Signed-off-by: John Johansen <john.johansen@canonical.com>
------------------------------------------------------------
revno: 1734
committer: Steve Beattie <sbeattie@ubuntu.com>
branch nick: apparmor
timestamp: Thu 2011-06-02 18:54:56 -0700
message:
This patch adjusts the tag make target to use a separate version with
'~' replaced by '-'. This is needed for mirroring to git as git can't
handle '~'s embedded in tag or branch names.

Tested by setting up a separate tag_version target like so:

tag_version:
echo ${TAG_VERSION}
...

关于version-control - Bazaar:如何显示文件更改的历史记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8875621/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com