project version/revision module
As part of your build script and/or revision control checkin script, write out a version number to constant in an include file.  Write a custom module that does something with this include file, such as make a block that prints it out, stuffs it into $conf expose the value via webservice, etc.  You could also do this directly to settings.php, too, if you just need a variable.