[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-06 21:37:50 CEST

"Dale R. Worley" <dworley@pingtel.com> writes:

| On Sun, 2005-09-04 at 13:01 +0200, Lars Gullik Bjønnes wrote:
>> F.ex. I want to do a test build for all revisions in a branch.
>>
>> I decide to start at r100... the next rev on the branch where anything
>> changed might be r105 (but I don't know this yet). So I just "svn up
>> -r+1"
>>
>> In URL to get the next revision number instead of updating to it.
>
| Why isn't it better to extract the rev numbers out of 'svn log -q' with
| sed?
>
| svn log -q --stop-on-copy | sed -e '/^-/d' -e 's/^r\([0-9]*\) .*$/\1/'

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.

but I want to be able to do the same with URL.
(similr that is)

-- 
	Lgb
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 6 21:44:05 2005

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

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