You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Young, Jason (GE Infrastructure)" <Ja...@ge.com> on 2005/06/24 15:26:33 UTC

Check youngest revision of tree

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.

Thanks,
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Check youngest revision of tree

Posted by Ben Collins-Sussman <su...@collab.net>.
On Jun 24, 2005, at 10:26 AM, Young, Jason ((GE Infrastructure)) wrote:

> Does anyone know how I can get the latest revision number of a
> particular folder WITHOUT checking it out?

    $ svn info URL



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Check youngest revision of tree

Posted by Scott Lawrence <sl...@pingtel.com>.
On Fri, 2005-06-24 at 11:26 -0400, Young, Jason (GE Infrastructure)
wrote:
> 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