Can I get a list of added or deleted files from Subversion?

I want to get a list of files that have been added or removed from our Subversion repository, for example, last month.

I would rather have file names rather than just an account.

Is this possible from the Subversion command line or do I need to use a script to trawl the log?

+5
source share
3 answers

I don’t think that you can only do this using the command line tools, but outputting it using the XML format and doing grepping or filtering will probably give you what you want.

Try this to get started:

svn log -v --xml | grep 'action="[A|D]"'
+8
source

2 . Visual Studio, dev.

svn diff -r 14311:HEAD --summarize | findstr "^A" > AddedFiles.txt
svn diff -r 14311:HEAD --summarize | findstr "^D" > DeletedFiles.txt

14311 HEAD.

+1

I use mishmash from the svn and grep log command to get just deletes. eg.

% svn log -v -r \{2013-09-01\}:\{2013-10-31\}|grep '  D'

Will list the files deleted from the current branch in September-October 2013 (or ... anything else with "space, space, more" in it)

0
source

All Articles