views:

726

answers:

3

Hi!

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 repository (WebDAV with Apache2).

I tried this:

svnversion http://nick:[email protected]/svn/test`

In a browser it worked as usual (just to ensure there weren't typos or so), but svnversion said that the directory cannot be found. So I presume I was on the wrong track.

How can I get the revision number?

+5  A: 
svn info http://nick:[email protected]/svn/test

should return information about the remote repository, including Revision

Avi
+8  A: 

svnversion is just for working copies, but one way to query your repository would be to use svn info as follows:

svn info http://nick:[email protected]/svn | grep Revision
Paul Dixon
+3  A: 

On Linux, if you want just the revision number:

svn info http://nick:[email protected]/svn/test | grep '^Revision:' | awk '{print $2}'

Wyatt Baldwin