Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access older revision of SVN repo via HTTP / mod_svn

Tags:

svn

apache

Using the mod_svn module for apache you can access the repository not onl via SVN client but also directly via HTTP using the same URL. You only get a plain directory listing showing the HEAD revision in such a case.

It is possible (may be via URL parameters) to access older revisions of the SVN repository if they has net been copied/tagged within the SVN?

I know that there are 3rd party software that allows to do so like ViewCV or WebSVN but I am interested in how far you get with only a plain SVN repository accessible via mod_svn and HTTP(S).

like image 414
Robert Avatar asked May 05 '11 11:05

Robert


People also ask

How do I access SVN repository over the Internet?

You can either store your repositories locally and access them using the file:// protocol or you can place them on a server and access them with the http:// or svn:// protocols. The two server protocols can also be encrypted. You use https:// or svn+ssh:// , or you can use svn:// with SASL.


1 Answers

You can use the r querystring parameter to access older versions of files and directory listings with mod_dav_svn. For example:

http://host.example.com/repos/project/trunk/README.txt?r=1234

The SVN Book has more details on how this works.

like image 116
一二三 Avatar answered Oct 17 '22 10:10

一二三