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

[semi-OT] Getting the last revision number of a repository from an Ant script

From: Dave Merrill <dmerrill_at_usa.net>
Date: 2006-02-04 23:56:43 CET

I'm working on an Ant build script that copies the latest revision of a
spec'd dir in a spec'd repository into a working directory, then creates a
deployment package from it. In that script, I'd like to create a file
containing, among other things, the last revision number of that repository,
like what you see in the top line of the tsvn log browser.

I'm not looking for revision info on individual files; the whole package
should be flagged with the overall version it was built from. I would have
thought there'd be a simple way to do this, but I haven't found it yet.

I've tried SubWCRev.exe, but since it works off working copies, it gets the
revision number of the working copy the script just created to build from,
so it's always 0.

Is there a common way to do this? Some other approach entirely?

Thanks very much for any ideas,

Dave Merrill

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Feb 4 23:56:51 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

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