通过HTTP / mod_svn访问SVN回购的旧版本 [英] Access older revision of SVN repo via HTTP / mod_svn
问题描述
使用的Apache mod_svn模块,您可以通过SVN客户端不ONL访问该存储库还可以直接通过HTTP使用相同的URL。你只有一个简单的目录列表显示在这样的情况下,最新版本。
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.
这是可能的(可能是通过URL参数),如果他们有网被复制/标记的SVN内访问SVN仓库的老版本?
我知道有第三方软件,允许这样做像ViewCV或WebSVN但我感兴趣的是你只能通过mod_svn和HTTP(S)访问一个普通的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).
推荐答案
您可以使用研究
查询字符串参数访问旧版本的文件和目录列表与mod_dav_svn的。例如:
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
的<一个href=\"http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.browsing\">SVN本书对如何工作的更多细节。
The SVN Book has more details on how this works.
这篇关于通过HTTP / mod_svn访问SVN回购的旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!