开发者

Access older revision of SVN repo via HTTP / mod_svn

开发者 https://www.devze.com 2023-03-03 06:16 出处:网络
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 t开发者_开发百科h

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 t开发者_开发百科he 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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号