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

Re: [Subclipse-dev] svnAnt and "info" command

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2005-08-04 01:13:48 CEST

On Wed, 2005-08-03 at 18:32 +0300, Daniel Serodio wrote:
> I want to get the revision number for my repository during my build
> script. I thought the easiest way to get this information would be "svn
> info", but svnAnt doesn't support this command.
>
> Is there another way to get this information?

Daniel, it appears that 'svn info' is completely missing from SvnAnt.
As svnClientAdapter does support this function, adding this feature to
SvnAnt should be fairly trivial. This will happen post-1.0.0. If
you're up for submitting a patch, that would be fantastic (just use of
the existing commands as a template), but if you'd at least file an
issue and CC the Tigris user 'dlr', that would also be a big help.

In the mean time, you can either:
1) Try SvnAnt's equivalent of 'svn log' in conjunction with the special
revision "BASE", and pull the revision number out of its output.
2) <exec> a 'svn info'.
3) Parse the content of .svn/ yourself.
4) Write a simple Ant Task which wraps ISVNInfo.

Option 1 is obviously the simplest.

- Dan
Received on Thu Aug 4 09:13:48 2005

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.