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

RE: RE: Finding out the revision numbers for Tags

From: Reedick, Andrew <jr9445_at_ATT.COM>
Date: Mon, 7 Apr 2008 13:14:35 -0500

> -----Original Message-----
> From: Reedick, Andrew
> Sent: Monday, April 07, 2008 1:41 PM
> To: users_at_subversion.tigris.org
> Subject: RE: Finding out the revision numbers for Tags
>
>
>
 
> So, to get a rev number:
> svn log -q --stop-on-copy svn://.../tag1 | grep '^r' | tail - 1
> | sed 's/^r//' | sed 's/ .*//'
> or
> svn log -q --stop-on-copy svn://.../tag1 | perl -ne 'print
> qq($1\n) if /^r(\d+)/' | tail - 1
>

Helps to finish what I start:

URL=svn://.../tag1
X=`svn log -q --stop-on-copy $URL | perl -ne 'print qq($1\n) if
/^r(\d+)/' | tail -1`
START=`svn log -q -v -r $X | perl -ne "print qq($1\n) if /\(from
.*:(\d+)\)$/`

URL=svn://.../tag2
X=`svn log -q --stop-on-copy $URL | perl -ne 'print qq($1\n) if
/^r(\d+)/' | tail -1`
END=`svn log -q -v -r $X | perl -ne "print qq($1\n) if /\(from
.*:(\d+)\)$/`

svn log -r $START:$END ...

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA623

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-07 20:15:21 CEST

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