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

Re: Revision keywords and arithmetics

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2006-02-01 21:02:31 CET

On 1-Feb-06, at 12:43 AM, Anthony Shipman wrote:

> On Wednesday 01 February 2006 03:26, Scott Palmer wrote:
>>
>> I use PREV and COMMITTED all the time to see what the "last change"
>> was to a particular file.
>>
>> svn diff -rPREV:COMMITTED myfile
>>
>> I do this when I see that an update has pulled in changes to a file
>> that I "own" or recently changed...
>
> If three of those have crept in while you were getting around to it
> you could
> write
>
> svn diff -rCOMMITTED-3:COMMITTED myfile

Are you suggesting that the arithmetic would not operate on the raw
revision number, but it would be smart enough to go back, in your
example, over the three previous changes to that file? Remember that
the revision number will get bumped by changes to other files, so
-rCOMMITTED-3:COMMITTED might yield exactly the same diff as -
rPREV:COMMITTED if we are taking about revision numbers.

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 1 21:04:08 2006

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.