通过 webdav 列出更改历史记录
我正在尝试列出文件夹的更改历史记录,类似于显示日志 选项可以。我试图让它尽可能简单,而不是沿着安装 Trac 之类的东西的路线。
要通过 Web 浏览器访问我的存储库,我会访问如下 URL。
http://localhost/svn/ProjectDirectory
这列出了该目录的工作副本中的所有内容。
我有一种预感,我想要做的事情可以通过 SVNSpecialURI 实现,但这似乎完全没有记录。
上述用法的一个例子是这样的:
http://localhost/svn/ProjectDirectory/!svn/bc/10
这显示了修订版 10。
我在几个不同的地方看到了提到 !svn/his
的提示,即 未完成的官方文档和Google 代码搜索。我无法让这些工作,出现错误
“在以下位置找不到请求的 URL /svn/ProjectDirectory/!svn/his 该服务器。”
我也浏览了源代码,但我的 C++ 不太符合标准。有人接受吗?
I'm trying to list the change history for a folder, similar to what the Show Log option in TortoiseSVN does. I'm trying to keep it as simple as possible without going down the route of installing something like Trac.
To access my repository via web browser I go to a URL like the following
http://localhost/svn/ProjectDirectory
This lists everything in the working copy of this directory.
I have a hunch that what I'm trying to do is possible via the SVNSpecialURI but this appears to be completely undocumented.
An example of the usage of the above is this:
http://localhost/svn/ProjectDirectory/!svn/bc/10
This shows you revision 10.
I've seen hints in a few different places which mention !svn/his
, namely an unfinished official document and Google Code Search. I haven't been able to get these to work, getting the error
"The requested URL /svn/ProjectDirectory/!svn/his was not found on
this server."
I've also had a glance at the source but my C++ isn't quite up to scratch. Any takers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我现在无法访问 SVN,但根据我收集的信息,您尝试的 URL 只能在内部访问。
使用 WebDAV 意味着您需要使用不同的 HTTP 动词...WebDAV 标准将使用 DeltaV(版本控制)来实现此类内容...SVN 的实现方式似乎有点不同。
根据这个你可以看到 HTTP 动词
REPORT
与项目 URL 结合可以用来获取历史信息......I don't have access to SVN right now but from what I gather the URL you tried is only internally accessible.
Using WebDAV means you need to use different HTTP verbs... WebDAV standard would use DeltaV (versioning) for such stuff... SVN seems to have implemented it a bit differently.
According to this you can see that the HTTP verb
REPORT
in combination with the project URL can be used to get history information...