Dane O'Connor
Dane O'Connor

Reputation: 77298

How do I see what files were changed between 2 revisions?

I just want to see what files were modded/added/deleted between 2 arbitrary revisions. How do I do this?

Can I do this in tortoise as well?

Upvotes: 23

Views: 20266

Answers (7)

Dipendra Gurung
Dipendra Gurung

Reputation: 1

This worked for me on windows

  1. Go to your folder where you have the repository,
  2. right click and select SVN Show log,
  3. In the dialog box there is a "Show Range" button, click it and fill Start Revision = {your revision} and End Revision = {your revision}
  4. Select the Start and Date range as per your need

Note: {your revision}=provide the revision number for atleast one of your file changes. All files associated with that revision should get listed.

Upvotes: 0

Elias Zamaria
Elias Zamaria

Reputation: 101083

If you want a concise list of files without the times and commit messages, you can do it like this:

svn diff -r X:Y --summarize

Upvotes: 34

Ammar Yousuf
Ammar Yousuf

Reputation:

svn diff -r "start_revision_number":"end_revision_number" "url_of_svn_repo" --summarize

then just pipe it to grep ^A D or M

Upvotes: 6

Ken
Ken

Reputation: 2092

If you are new to source control and SVN you may want to pick up Pragmatic Version Control with SVN. It explains many of the concepts and commands.

Upvotes: 1

Max Cantor
Max Cantor

Reputation: 8357

svn log -v -rX:Y .

The -v for "verbose" switch will give you detailed output on which files were affected on that revision.

Note that "." assumes you are currently in a working copy directory, but you can also use a URL such as "http://svn.myawesomesoftwareproject.com/trunk/lib/foo.c".

This information can be found by typing "svn help log", or by reading the SVN Book, available free online. Don't forget to Read The Friendly Manual!

Upvotes: 43

moonshadow
moonshadow

Reputation: 89065

Like this.

Upvotes: 2

Tom Ritter
Tom Ritter

Reputation: 101330

Right click the directory containing your repo. Choose SVN Show Log. Control+Click the two revisions. Right click on one and choose Compare Revisions.

Upvotes: 6

Related Questions