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.
svn checkout
Just used @badcat's answer in a modified version, using subprocess.check_output():
import subprocess revision = subprocess.check_output("svn info | awk '/^Revision:/ {print $2}'", shell=True).strip()
I believe you can also, install and use pysvn if you want to use python to interface with svn.