嘿我正在为我的代码使用集市,我想显示特定文件的更改历史,而不是显示整个集市回购的变化。我怎么能这样做?
答案 0 :(得分:11)
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}
...
答案 1 :(得分:5)
bzr log 是关键。
目的:显示分支或分支子集的历史日志。 用法:bzr log [FILE ...]
如果您使用gui(BzrExplorer的TortoiseBzr),请在log
命令中选择文件和clic。