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

Re: Check youngest revision of tree

From: Scott Lawrence <slawrence_at_pingtel.com>
Date: 2005-06-24 17:51:49 CEST

On Fri, 2005-06-24 at 11:26 -0400, Young, Jason (GE Infrastructure)
> Does anyone know how I can get the latest revision number of a
> particular folder WITHOUT checking it out? I looked at SVNLook, but it
> only works on the root. I also looked at SVN Info and SVN status, and
> you need a working copy for them.

> I'm trying to set up a daily build, and I don't want to rebuild unless
> files have changed in a certain tree. I don't want to get all of the
> files each time just to check. It would be nice if it was a quick
> operation so that I could choose to poll more often without penalty if I
> decide to do that.

First, doing an update is very cheap if nothing has changed, so I
wouldn't worry about it. Make a working copy that's just the tree you
want, and then run update.

If you want to get the number:

svn info . | awk '$1 == "Revision:" {print $2}'

Scott Lawrence, Consulting Engineer
Pingtel Corp.  http://www.pingtel.com/
+1.781.938.5306 x162 or sip:slawrence@pingtel.com
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 24 17:53:38 2005

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.