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

getting a repository's latest revision

From: Rob Hills <rob_at_netpaver.com.au>
Date: 2004-10-11 04:51:12 CEST

Hi All,

I use ant scripts to build our applications for release. As part of this process, source
code is exported from the repository to a temporary directory and built.

In my ant script, this process often involves getting files from several different areas of
our repository and hence involves several "export" operations. To ensure I get a
consistent build, I use the same revision number for all my exports.

However, I've not been able to find any way of getting the "latest" revision number of
a repository without at least exporting one file from it. I've looked at the "svn info"
command, but this operates against a working copy which won't necessarily be
present on the build machine. So, for now, I do an export, parse its output for the
revision number and then use that revision number for subsequent exports. It works,
but I find it a bit messy and it is of course subject to any changes in the formatting of
the output from the export command.

I guess what I'm looking for is a kind of "svn revision URL" command that returns the
latest revision of the specified url without needing a local client working copy.
Alternatively perhaps, allow the "svn status" command to take a URL instead of a
local path and then return appropriate values for that URL.

Cheers,

Rob Hills
MBBS, Grad Dip Com Stud, MACS
Senior Consultant
Netpaver Web Solutions
Tel: (08) 9485 2555
Mob: (0412) 904 357
Fax: (08) 9485 2555

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 11 04:49:22 2004

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.