Manuals

Integratie met Web-gebaseerde Archief Viewers

There are several web-based repository viewers available for use with Subversion such as ViewVC and WebSVN. TortoiseSVN provides a means to link with these viewers.

U kunt een archief viewer naar keuze integreren in TortoiseSVN. Hiervoor dient u een aantal eigenschappen te definiëren welke de koppeling definiëren. Deze dienen op Mappen te worden ingesteld: (de paragraaf met de naam “Project Instellingen”)

webviewer:revision

Set this property to the URL of your repo viewer to view all changes in a specific revision. It must be properly URI encoded and it has to contain %REVISION%. %REVISION% is replaced with the revision number in question. This allows TortoiseSVN to display a context menu entry in the log dialog Context MenuView revision in webviewer.

webviewer:pathrevision

Set this property to the URL of your repo viewer to view changes to a specific file in a specific revision. It must be properly URI encoded and it has to contain %REVISION% and %PATH%. %PATH% is replaced with the path relative to the repository root. This allows TortoiseSVN to display a context menu entry in the log dialog Context MenuView revision for path in webviewer For example, if you right click in the log dialog bottom pane on a file entry /trunk/src/file then the %PATH% in the URL will be replaced with /trunk/src/file.

U kunt ook gebruik maken van relatieve URL's in plaats van absolute. Dit komt van pas in het geval dat uw webviewer zich op het zelfde domein/server bevindt as uw bronarchief. In het geval dat de domeinnaam ooit wijzigt hoeft u de webviewer:revision en webviewer:pathrevision eigenschappen niet aan te passen. De schrijfwijze is dezelfde als van de bugtraq:url eigenschap. Zie ook de paragraaf met de naam “Integratie met Bug Tracking Systemen / Issue Trackers”.

Stel de Eigenschappen in op Mappen

These properties must be set on folders for the system to work. When you commit a file or folder the properties are read from that folder. If the properties are not found there, TortoiseSVN will search upwards through the folder tree to find them until it comes to an unversioned folder, or the tree root (e.g. C:\) is found. If you can be sure that each user checks out only from e.g trunk/ and not some sub-folder, then it's enough if you set the properties on trunk/. If you can't be sure, you should set the properties recursively on each sub-folder. A property setting deeper in the project hierarchy overrides settings on higher levels (closer to trunk/).

Bij eigenschappen welke alleen op projecten van toepassing zijn, bijv. tsvn:, bugtraq: en webviewer:, kunt u gebruik maken van de Recursief vinkbox om de eigenschap op alle sub-mappen binnen de hiërarchie in te stellen, zonder het ook op de bestanden in te stellen.

Als u met TortoiseSVN nieuwe sub-mappen aan een werkkopie toevoegd, zullen alle project eigenschappen welke in de bovenliggende map aanwezig zijn, automatisch aan de nieuwe sub-map worden toegevoegd.

Beperkingen Van De Archief-verkenner

Because the repo viewer integration depends upon accessing Subversion properties, you will only see the results when using a checked out working copy. Fetching properties remotely is a slow operation, so you will not see this feature in action from the repo browser unless you started the repo browser from your working copy. If you started the repo browser by entering the URL of the repository you won't see this feature.

Om de zelfde reden zullen de project eigenschappen niet automatisch worden gepropageerd wanneer een sub-map wordt toegevoegd vanuit de archief-verkenner.

TortoiseSVN homepage