Version control Bazaar:如何显示文件更改的历史记录?
嘿,我正在使用bazaar作为我的代码,我想显示特定文件的更改历史,而不是显示整个bazaar repo的更改。我该怎么做?Version control Bazaar:如何显示文件更改的历史记录?,version-control,bazaar,Version Control,Bazaar,嘿,我正在使用bazaar作为我的代码,我想显示特定文件的更改历史,而不是显示整个bazaar repo的更改。我该怎么做?bzr将向您显示哪些行引入了哪些更改: $ bzr blame Makefile 548 steve-b | # | # 861 steve-b | OVERRIDE_TARBALL=yes 548 steve-b | | include common/Make.rules
bzr
将向您显示哪些行引入了哪些更改:
$ 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
将显示:
$ 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}
...
$bzr日志生成文件
------------------------------------------------------------
修订编号:1828
标签:apparmor_2.7.0-beta2
提交人:约翰·约翰森
尼克:公寓
时间戳:周四2011-09-15 13:28:01-0700
信息:
执行~to操作时,从${TAG_VERSION}的插入位置删除额外的空间-
替代。
签字人:约翰·约翰森
------------------------------------------------------------
修订编号:1734
提交人:史蒂夫·比蒂
尼克:公寓
时间戳:周四2011-06-02 18:54:56-0700
信息:
此修补程序将调整标记make target以使用单独的版本
“~”替换为“-”。这是镜像到git所必需的,因为git不能
嵌入在标记或分支名称中的句柄“~”。
通过设置单独的tag_版本目标进行测试,如下所示:
tag_版本:
echo${TAG_VERSION}
...
bzr日志是关键
目的:显示分支或分支子集的历史日志。
用法:bzr日志[文件…]
如果您使用gui(BzrExplorer的TortoiseBzr),请在
log
命令上选择文件和clic。在这种情况下,我发现qbzr插件非常有用。使用bzr-qlog[FILE]
命令,我可以查看历史记录,然后轻松查看任何我感兴趣的特定修订版的差异。另请参见bzr-log-p文件,其中将包括每个修订版的差异。非常感谢您的精彩回答:)