[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-06 23:18:44 CEST

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.

> 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}'


- pass 16001 to get the first revision *after* 16000 and avoid getting
  16000 itself.

- ra_dav displays a "REPORT request failed" error, I think that's a
  bug as the log command appears to work and other RA layers don't
  have a problem.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 6 23:19:30 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.