On the local machine it is no problem to get the revision number of a subversion repository with svnversion
. Now I want to get the revision number from my online re
On new version of svn (1.9) you can do:
svn info --show-item revision svn://...
18436
This should return only the revision number.
All the grep version will break if your locale is not english.
For previous version, you can try
svn info --xml | grep '
If you can have the xml2 package a better way is to do:
svn info --xml | xml2 | grep /info/entry/@revision | grep -o '[0-9]\+'