[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: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-04-13 12:26:36 CEST

On Apr 13, 2006, at 08:49, Alex Teslik wrote:

> 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?

> P.S.- post hooks are not a good solution since the commits may be
> too frequent
> for the tarball to be made before the next commit.

You could, however, use a very short hook script to see if the commit
is happening on trunk, and if so, record the revision number in a
file. Then the cronjob could read that file to determine the youngest
revision of trunk.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 13 12:27:48 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.