Project

General

Profile

Mapping to CVS root folder

Added by Andrew Hodgkinson about 13 years ago

I'm investigating the use of Redmine to replace Collaboa and possibly other parts of the RISC OS Open web site at "http://www.riscosopen.org/". We have a large and complicated CVS tree with a great deal of history and I'm having trouble getting Redmine to behave with it.

The repository structure is perhaps relatively unusual. Public visible source "subtrees" sit in the root - e.g. "bsd", "castle" and others. You can see them here: "http://www.riscosopen.org/viewer/view/". In the actual filesystem for the repository, those folders sit right inside the CVS root folder, alongside the CVSROOT folder. We don't have modules defined for this; the CVS viewer on the web site is a Rails wrapper around 'cvsweb', which doesn't list CVSROOT either because it has it as an exception or it knows that an anonymous user has no access to that part of the source tree.

In Redmine, the closest I can get to this is to specify a module of "." in the repository. The repository viewer for the top level then works OK, though it's very, very slow to show up - it takes several seconds, soaking the server CPU, each time it is visited. The problem is that the CVSROOT directory is visible and you can't click on any of the listed folders to view their contents - even though Redmine generates the list, an attempt to view their contents results in a 404 error for every single one.

I tried defining a module which was an alias to each of the root folders I wanted visible. However, Redmine then showed a flat amalgamated list of the contents of each of those folders, as if they were all merged together. Because of the repository's actual structure, this meant things like a "RiscOS" entry appeared in the list five times and attempts to navigate into this folder just kept re-generating the same top-level folder list with an extra "/RiscOS" appended to the view path each time it was attempted. In short, Redmine was very confused. In this merged view, the repository viewer was also even slower than with a module of ".".

What am I doing wrong? All I want is to be able to browse the repository in the same way as the existing site / as in CVSWeb or CVSHistory, but I can't figure out how I should configure Redmine to do that.

Many thanks for any suggestions.