Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get changed files from SVN command line between two revisions

Tags:

diff

svn

revision

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)?

like image 306
Madhan Avatar asked Feb 08 '12 09:02

Madhan


People also ask

How do you find changed files in svn?

After running this to get a summary of all of the changes, if you want to review each change you have made on your branch, you can use svn diff -r 22334 (note that a diff to the HEAD is not specified). This will diff to your local working copy and allow you to make changes to it from within your diff application.

How do I diff two revisions in svn?

Display the differences between two paths. The ways you can use svn diff are: Use just svn diff'to display local modifications in a working copy. Display the changes made to TARGET s as they are seen in REV between two revisions.

How do I find my svn revision history?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

How can I get previous revision from svn?

On the file, simply right-click => Team => Switch to another branch/tag/revision. Besides the revision field, you click select, and you'll see all the versions of that file.


1 Answers

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.

like image 135
Dirk-Willem van Gulik Avatar answered Oct 04 '22 11:10

Dirk-Willem van Gulik