[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-04 13:01:09 CEST

Julian Foad <julianfoad@btopenworld.com> writes:

| Lars Gullik Bjønnes wrote:
>> -r+1 on a branch to get next revision number would be nice.
>> (this would skip over revs to the next where something happened on the
>> branch)
>
| Please describe what you mean much more precisely, and give a
| realistic example. For example, I don't know whether you are thinking
| of using this in a WC or on a URL.

Both WC and URL.

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.

I know that I can get the next rev by something like:

svn log -r 8:HEAD --limit 1 svn+ssh://svnserver/svnrepo/

which will give me next rev >= 8 , but since I have to use HEAD this
can take a long time. (Have to parse the output though) (Perhaps the limit case isn't taken into account
when breaking out of the search?)

(I hope I make some kind of sense...)
 

-- 
	Lgb
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 4 22:54:44 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.