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

Re: I am a new user and confused by revision keywords,please show me an example

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-22 23:13:19 CEST

On May 21, 2005, at 10:07 AM, zxb wrote:
> I need an example,please.

Suppose you checkout a working copy, all at revision 100.

Suppose the working copy has a file, 'foo.c'.

The BASE version of foo.c is r100.

But: it's not very likely that foo.c changed in every single
revision. In this case, assume that foo.c last changed in revision
77. That is the value of COMMITTED for foo.c. If you were to run
'svn status -v foo.c', you'd see both BASE and COMMITTED listed:

               100 77 joe foo.c

In other words, foo.c last changed in r77, and then foo.c remained
exactly the same in every revision between r77 and r100.

To see the *previous* version of foo.c, all you need to do is look at
r76, the revision just before the one in which foo.c last changed.
That's the definiton of PREV. PREV is COMMITTED-1.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 22 23:15:19 2005

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

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