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

Re: youngest trunk revision?

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-04-13 19:41:18 CEST

On 4/12/06, Alex Teslik <alex@acatysmoof.com> wrote:
> Hello,
>
> I would like to know the youngest revision of only the trunk of my
> repository. I know "svnlook youngest RPATH" will tell me the latest revision
> number, but it tells the latest for the entire repository - not just the trunk.
>
> The reason I would like this number is because I would like a cron job that
> monitors the respository and automatically creates a snapshot tarball, but
> only when the repository has changed since the last tarball. I suppose I could
> throw perl at it and extract the information from some other commands, but is
> there a better way?

svn log $URL_OF_TRUNK --limit 1 -q | awk '/^r/ { print $1 }

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 13 19:50:10 2006

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

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