如何通过 Web 视图浏览 Subversion 存储库的旧版本? [英] How do I browse an old revision of a Subversion repository through the web view?
问题描述
我知道如何通过它的 web 前端浏览我项目的 Subversion 存储库,但我似乎只能浏览主干的最新版本.有没有办法通过 Web UI 浏览旧版本的主干?
I know how to browse my project's Subversion repository through its web front-end, but it seems that I can only browse the latest revision of the trunk. Is there a way to browse an older revision of the trunk through the web UI?
我知道如何从命令行执行此操作,但我需要知道如何使用 URL 执行此操作,因为我将这些 URL 嵌入到文档中.我也知道我可以为主干创建一个 svn 风格的标签,但我不想这样做.
I know how to do this from the command-line, but I need to know how to do this using URLs, because I'm embedding these URLs into a document. I also know I could create an svn-style tag of the trunk, but I would prefer not to do that.
推荐答案
将这样的内容附加到您的存储库 URL:
Append something like this to your repository URL:
!svn/bc/<revision_number>/
例如
http://www.example.com/svnrepository/!svn/bc/3/
替代方案
如果您的存储库是使用 Subversion 1.6.0 或更高版本托管的,您可以使用 example.com/svnrepository/?p=3 得到相同的结果......这个方法/是/记录.(?r= 文件的修订版,?p= 操作修订版网址).参见 subversion 1.6 发行说明
If your repository is hosted using Subversion 1.6.0 or later, you can use example.com/svnrepository/?p=3 for the same result... This method /is/ documented. (?r= revision of the file, ?p= operational revision of the URL). See the subversion 1.6 release notes
这篇关于如何通过 Web 视图浏览 Subversion 存储库的旧版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!