名称

svnlook changed — 打印修改的路径。

概要

svnlook changed REPOS_PATH

描述

打印在特定修订版本或事物修改的路径,也是在前两列使用svn update样式的状态字符:

'A '

条目添加到版本库

'D '

条目从版本库删除

'U '

文件内容改变了

'_U'

条目的属性改变了;注意开头的下划线

'UU'

文件内容和属性修改了

文件和目录可以区分,目录路径后面会显示字符/

选项

--copy-info
--revision (-r) REV
--transaction (-t) TXN

例子

This shows a list of all the changed files and directories in revision 39 of a test repository. Note that the first changed item is a directory, as evidenced by the trailing /:

$ svnlook changed -r 39 /var/svn/repos
A   trunk/vendors/deli/
A   trunk/vendors/deli/chips.txt
A   trunk/vendors/deli/sandwich.txt
A   trunk/vendors/deli/pickle.txt
U   trunk/vendors/baker/bagel.txt
_U  trunk/vendors/baker/croissant.txt
UU  trunk/vendors/baker/pretzel.txt
D   trunk/vendors/baker/baguette.txt

如下是显示文件重命名修订版本的例子:

$ svnlook changed -r 64 /var/svn/repos
A   trunk/vendors/baker/toast.txt
D   trunk/vendors/baker/bread.txt

Unfortunately, nothing in the preceding output reveals the connection between the deleted and added files. Use the --copy-info option to make this relationship more apparent:

$ svnlook changed -r 64 --copy-info /var/svn/repos
A + trunk/vendors/baker/toast.txt
    (from trunk/vendors/baker/bread.txt:r63)
D   trunk/vendors/baker/bread.txt