如何在SVN日志中查看已删除文件的列表?

How to see the list of deleted files in SVN log?

对SVN目录执行删除操作时,删除操作returns删除文件列表:

D         folder/test
D         folder/test/images
D         folder/test/images/gif.gif
D         folder/test/images/jpeg.jpeg
D         folder/test/images/jpg.jpg
D         folder/test/images/pdf.pdf
D         folder/test/images/png.png
D         folder/test/images/svg.svg

在那之后,如果我提交更改并尝试为文件被删除的修订做一个详细日志:

svn log https://svn.remote.repository/repos/repo -r 12345 -v

只有returns被删除的文件夹:

Changed paths:
      D /root/branches/branch/folder/test

如何获取已删除文件的列表,就像在原始删除操作中一样?

你可以试试svn log --depth infinity --diff -r 12345 -v.

参见--depth

--depth ARG

Instructs Subversion to limit the scope of an operation to a particular tree depth. ARG is one of empty (only the target itself), files (the target and any immediate file children thereof), immediates (the target and any immediate children thereof), or infinity (the target and all of its descendants—full recursion).