If you need this from a remote repository (as in untested localy), you can do this
for /f "delims=: tokens=1,2" %%a in ('svn info %SVN_REPO_URL%') do ( if "%%a"=="Revision" ( set /a RELEASE_REVISION=%%b ) )
I use this in my release process to grab the version number from the tag.
source share