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

Re: Revision Arithmetic

From: Lars Gullik Bjønnes <larsbj_at_gullik.net>
Date: 2005-09-07 00:16:48 CEST

Philip Martin <philip@codematters.co.uk> writes:

| larsbj@gullik.net (Lars Gullik Bjønnes) writes:
>
>> Well... it would be to be a bit more complicated than this. I don't
>> want a list of numbers I want only one. The revision after X.
>>
>> It is actually possible that soemthing like
>>
>> let nextrev=`svnversion .`+1 ; svn up -r $nextrev
>>
>> will do exactly what I want.
>
| Not if your working copy is mixed-revision or modified.

In my particular case that will never happen.

>> but I want to be able to do the same with URL.
>> (similr that is)
>
| To find the first change after r16000 on the Subversion 1.2.x branch
>
| $ U=http://svn.collab.net/repos/svn/branches/1.2.x
| $ svn log -q --limit 1 --r16001:HEAD $U | awk '/^r/print {$1}'
| r16036

right... but then I need to know the the 16000 beforehand.

with revision aritmetic I could just use +1 (BASE+1 perhaps)

-- 
	Lgb
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 7 00:17:36 2005

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