R – Automatically create subversion revision file

netsvntortoisesvnvisualsvn

I have a project who's structure in Subversion goes as follows,

branch
tags
trunk
-- Library
---- Library Code
-- Website
---- Website Code

The Library folder contains most of the project code and is a class library. The Website folder is a website project which uses the library. The website is what gets deployed to the live site.

I would like to automatically create a file in the root of the website directory that stores the latest revision number of the trunk directory. Is this possible and if so how would I go about it?

The subversion server is VisualSVN on Windows using TortoiseSVN with VisualSVN for the client.

Best Answer

Since you're using TortoiseSVN, I suggest using SubWCRev for this task instead of svnversion.