How to view changes made to files on a certain revision in Subversion

Svn

Svn Problem Overview


I am looking for a Subversion command which does the equivalent of

git show <commit-number>

Svn Solutions


Solution 1 - Svn

With this command you will see all changes in the repository path/to/repo that were committed in revision <revision>:

svn diff -c <revision> path/to/repo

The -c indicates that you would like to look at a changeset, but there are many other ways you can look at diffs and changesets. For example, if you would like to know which files were changed (but not how), you can issue

svn log -v -r <revision>

Or, if you would like to show at the changes between two revisions (and not just for one commit):

svn diff -r <revA>:<revB> path/to/repo

Solution 2 - Svn

The equivalent command in svn is:

svn log --diff -r revision

Solution 3 - Svn

Call this in the project:

svn diff -r REVNO:HEAD --summarize

REVNO is the start revision number and HEAD is the end revision number. If HEAD is equal to the last revision number, it can skip it.

The command returns a list with all files that are changed/added/deleted in this revision period.

The command can be called with the URL revision parameter to check changes like this:

svn diff -r REVNO:HEAD --summarize SVN_URL

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkrsView Question on Stackoverflow
Solution 1 - SvnMichael Schlottke-LakemperView Answer on Stackoverflow
Solution 2 - SvnHongbo LiuView Answer on Stackoverflow
Solution 3 - SvnbakalovView Answer on Stackoverflow