I\'d like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs. It seems the best version number
You can use the svn:keywords property to enable the Rev keyword.
svn:keywords
Rev
You can then use $Rev$ in your code and SVN will expand it automatically when updating to $Rev: 256 $ which can then parse...
$Rev$
$Rev: 256 $
More info on the Subversion manual