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

per*_*ill 4 version-control bazaar

嘿我正在为我的代码使用集市,我想显示特定文件的更改历史,而不是显示整个集市回购的变化.我怎么能这样做?

sar*_*old 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
Run Code Online (Sandbox Code Playgroud)

如果您只想要提交消息,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}
...
Run Code Online (Sandbox Code Playgroud)

  • 另请参阅``bzr log -p FILE``,其中包含每个修订版本的差异. (3认同)
  • 在这种情况下,我发现qbzr插件非常有用.使用`bzr qlog [FILE]`命令,我可以看到历史记录,然后很容易看到引起我兴趣的任何特定修订的差异. (2认同)

Tri*_*enT 5

bzr日志是关键.

目的:显示分支或分支子集的历史日志.用法:bzr log [FILE ...]

如果您使用gui(BzrExplorer的TortoiseBzr),请选择文件和clic on log命令.