Get changed files from SVN command line between two revisions

Madhan picture Madhan · Feb 8, 2012 · Viewed 63.8k times · Source

I need to get the changed files list between two revisions in SVN.

I have used the following command:

svn diff -r 5001:6001 --summarize https://svn.blah.com/../  > output.txt

For some reason, the files modified on revision 5001 are not populated in the output text file.

What is the exact command to extract the files list between the two revisions (inclusive of from and to revisions, that is, including revision 5001 and revision 6001)?

Answer

Dirk-Willem van Gulik picture Dirk-Willem van Gulik · Feb 8, 2012

Try svn diff -r 5000:6001 instead. To understand this, consider the following: what would the output of svn diff -r 100:100 look like? It would show no changes, because the revisions are the same. To see the changes for revision 100, we must use -r 99:100.