SVN: Find last revision number without cloning

Problem:

You want to find out what the last revision number of a remote subversion repository is without cloning it (e.g. because cloning takes a looong time with subversion).

Solution:

svn info provides what you need. Just combine it with grep and cut

svn info http://llvm.org/svn/llvm-project/llvm/trunk | grep Revision | cut -d' ' -f2