Tuesday, September 30, 2014

Get a list of files changed between two revisions of SVN

If you want to see which specific files where changed between two revisions of SVN, then this is a handy and quick reminder, taken from here:
svn diff --summarize -r {newRevision}:{oldRevision}
You can change the order of {newRevision} and {oldRevision}.

For instance, to get the list of modified files between revisions 60 and 50 we write
svn diff --summarize -r 60:50
This will output a list like this:
 M       path/to/modifiedfile
 A       path/to/newfile
 D       path/to/deletedfile
 .
 .
 .


Bonus:
If you want to see the detailed diff between the versions of modified files, you may remove the --summarize suffix. But the output will be very bland and hard to read. See this post to learn how you can make that output look better.

No comments:

Post a Comment