Is there a Subversion command to show the current revision number?
After svn checkout
I want to start a script and need the revision number in a variable.
First of all svn status has the revision number, you can read it from there.
Also, each file that you store in SVN can store the revision number in itself -- add the $Rev$
keyword to your file and run propset: svn propset svn:keywords "Revision" file
Finally, the revision number is also in .svn/entries
file, fourth line
Now each time you checkout that file, it will have the revision in itself.