just in ram

A list of stuff I should remember but never do

Windows SubVersion / TortoiseSVN – Compare two versions of a file

with 6 comments

Today I needed to compare two different versions of a source file. One in the main trunk folder and the other in a previously tagged version folder. This is easily done in TortoiseSVN, snippet from the TortoiseSVN manual:

Compare two revisions of a file
If you want to compare two revisions in a file’s history, for example revisions 100 and 200 of the same file, just use TortoiseSVN => Show Log to list the revision history for that file. Pick the two revisions you want to compare then use Context Menu => Compare Revisions.

If you want to compare the same file in two different trees, for example the trunk and a branch, you can use the repository browser to open up both trees, select the file in both places, then use Context Menu => Compare Revisions.

If you want to compare two trees to see what has changed, for example the trunk and a tagged release, you can use TortoiseSVN => Revision Graph Select the two nodes to compare, then use Context Menu => Compare HEAD Revisions. This will show a list of changed files, and you can then select individual files to view the changes in detail. Alternatively use Context Menu => Unified Diff of HEAD Revisions to see a summary of all differences, with minimal context.

The process of comparing two trees is really nicely done, you get a list of all the files which have been changed between the two trees. You can then drill into this list and see the changes made to individual files. Kewl!

Written by Justin Ramel

April 26th, 2006 at 1:47 pm

Posted in Subversion

6 Responses to 'Windows SubVersion / TortoiseSVN – Compare two versions of a file'

Subscribe to comments with RSS or TrackBack to 'Windows SubVersion / TortoiseSVN – Compare two versions of a file'.

  1. Excellent thanks for that!

    Anonymous

    18 Oct 07 at 2:55 pm

  2. Great! I found it useful.

    Anonymous

    26 Oct 07 at 6:44 am

  3. Thanks that helped.

    kiran

    24 Mar 08 at 3:49 pm

  4. Blimey, I couldn’t find that anywhere, and it just wasn’t working for me. Didn’t notice that compare only appeared when you selected 2 items.

    Many thanks

    xetius

    13 Jun 08 at 3:35 pm

  5. Thanks for the concise explanation!

    Anonymous

    20 Oct 08 at 2:13 pm

  6. [...] по теме: • TortoiseSVN docs: Revision Log Dialog • Windows SubVersion / TortoiseSVN – Compare two versions of a file • TortoiseMerge and TortoiseDiff – viewing differences • Using TortoiseSVN (tutorial) [...]

Leave a Reply