WebSVN extension

by Geert 30. March 2009 16:28

WebSVN is a great way to view Subversion repositories in a web browser. It supports viewing the source code, blaming, log messages and more. It even supports parent listing so you can view multiple repositories in the same directory in one clear overview.

However, as always, I do the things just a little different than others. My subversion repositories are sorted by company and project. An example:

RepoExample

As you can see, the repositories are divided into logical (at least, I find them logical :)) groups. However, this setup required me to host several different versions of WebSVN:

  • RepoExample (root)
  • companies/company1
  • companies/company2
  • companies/sites

This is because the list parent only lists one directory, not all subdirectories.

To solve this problem, I have written a small extension. The extension really works very simply. You select a root directory (in the example case, RepoExample). Then, the extension will search all subdirectories and check whether the specific directory is a Subversion repository (by checking the directory structure).

It lists all the top directories as groups, and then adds all sub repositories into that group. The result of the extension:

websvn_result

As you can see, it adds a group (directory name except the repository name, such as companies/company_1). Then, all repositories are added after the dot (.).

There is just one downside of this extension: the default authentication files per repository are not recognized. In other words, everyone that is allowed to log in via Apache in the root where WebSVN is located (via webdav modules), is able to see the repository index.

To add this extension to your WebSVN installation, simply perform the following steps described in the readme.

WebSVN extension.zip (4.58 kb) [Downloads: 313]

kick it on DotNetKicks.com 

An extension for WebSVN to list all repositories inside a specific root directory.

Tags:

General

Pingbacks and trackbacks (1)+

Comments are closed

About the Author

Geert van Horrik is a independent freelance software developer since January 1st, 2007. Since then he was been working on several projects from C++ to C# (WPF, ASP.NET, etc). Currently he loves to write his software using WPF (or Silverlight if WPF isn't an option).

Lately, Geert is spending a lot of time on Catel, a free open-source MVVM Framework for WPF and Silverlight. Actually, it's more than "just" an MVVM Framework, it's a complete application library!