[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: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-09-07 00:41:49 CEST

larsbj@gullik.net (Lars Gullik Bjønnes) writes:

> Philip Martin <philip@codematters.co.uk> writes:
>
> | larsbj@gullik.net (Lars Gullik Bjønnes) writes:
>>
>>> but I want to be able to do the same with URL.

You wrote: "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 an URL you must know the revision.

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

Huh? An URL doesn't have a BASE revision. Do you have a working
copy? If so then you really need to handle mixed revisions, but if
you are prepared to pretend such things don't exist then:

$ svn info [wc_path] | awk '/^Revision/{print "r"$2+1":HEAD"}'

-- 
Philip Martin
---------------------------------------------------------------------
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:42:37 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.