[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Difference from a previous version/revision?

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Tue, 24 Aug 2010 08:32:33 +0200


On 24 August 2010 05:24, Edwin <edwintai_at_gmail.com> wrote:
> Hello~I want to tell the difference between "Difference from a
> previous revision" and "Difference from a previous version" usage.I
> copied from document as below
> My questions is when do we use "Difference from a previous version"?It
> would be used very often so it puts in context menu.But,I saw those
> discussion in previous subject is use  "Difference from a previous
> version".
> I think it's different about revision and version.
> if it is possible put "Difference from a previous revision" in the
> context menu?
> Thanks for help.
> If you want to see the difference between a particular revision and
> your working copy, use the Revision Log dialog, select the revision of
> interest, then select Compare with working copy from the context
> menu.
> If you want to see the difference between the last committed revision
> and your working copy, assuming that the working copy hasn't been
> modified, just right click on the file. Then select TortoiseSVN → Diff
> with previous version. This will perform a diff between the revision
> before the last-commit-date (as recorded in your working copy) and the
> working BASE. This shows you the last change made to that file to
> bring it to the state you now see in your working copy. It will not
> show changes newer than your working copy.

The reason for having 'version' in the menu and not 'revision' is that
the revision number of the previous version of the file can be any
number before the current revision. Revision numbers in SVN are
global, thus with each commit that new revision number applies to all
files in the entire repository.

Given that most files do not change between commits, the diff between
HEAD and HEAD -/- 1 ('diff with previous revision') is empty: files
are identical. 'Diff with previous version' will determine the
revision number of the most recent commit that actually modified the
file and then create a diff between that file and the current BASE

.       ___
.  @@  // \\      "De Chelonian Mobile"
. (_,\/ \_/ \     TortoiseSVN
.   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
.   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-08-24 08:32:52 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.