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

Re: getting a repository's latest revision

From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-10-11 11:19:28 CEST

Hi Rob,

I had the same problem but with the java binding not the commandline client.

Meanwhile I learned how to extend the libsvn_client API and the
commandline client. The latter to make debugging easier.

If you are willing to do some C programming I can give you some pointers
on how to make the command line client do what you want.

Regards,
Dirk

Rob Hills wrote:

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 11 11:20:18 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.