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

Re: .svn folders

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-01-19 14:33:54 CET

On Wed, 2005-19-01 at 14:02 +0100, Zouari Fourat wrote:
> thanks a lot !
> how can i export the 'youngest' revision number to a file when
> exporting my project so i can use that number to dynamically show the
> revision on my site

svnversion . <-- Only works on a working copy. That's the kicker.

[nesscg_at_heidrun ~]$ svn log -rHEAD https://websvn.your.domain | grep ^r
r167 | nesscg | 2005-01-18 22:39:30 -0500 (Tue, 18 Jan 2005) | 4 lines

Now you can parse the output to get the first column and you have the
revision number w/o needing a working copy. Bah.

That should do it. But remember, this is a dynamic command and will
change every time you commit a revision. So it should be run once upon
export.

Cheers,
Chris

-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
08:22:19 up 19:46, 2 users, load average: 0.10, 0.12, 0.09 
http://www.fsf.org/philosophy/no-word-attachments.html

Received on Wed Jan 19 14:40:14 2005

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.