Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listing change history via webdav

Tags:

svn

webdav

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?

like image 209
Ciaran Avatar asked Oct 17 '11 21:10

Ciaran


1 Answers

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...

like image 164
Yahia Avatar answered Oct 17 '22 22:10

Yahia