Skip to content

Commit 813065c

Browse files
bright-toolsdregad
authored andcommitted
Configuration guide for SourceSVN
Add configuration guide for SourceSVN & link from README.md Fixes mantisbt-plugins#250
1 parent 0086e90 commit 813065c

File tree

3 files changed

+82
-40
lines changed

3 files changed

+82
-40
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ MantisBT version | Tags | Branch | Notes
116116

117117
* [SourceGithub](docs/CONFIGURING.SourceGithub.md)
118118
* [SourceViewVC](docs/CONFIGURING.SourceViewVC.md)
119+
* [SourceSVN](docs/CONFIGURING.SourceSVN.md)
119120

120121
9. Once configured, click the "Return to Repository" link and click either
121122
the "Import Everything" or "Import Newest Data" button to perform initial

docs/CONFIGURING.SourceSVN.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SourceSVN Configuration
2+
3+
## Description
4+
5+
The **SourceSVN** extension plugin adds support for SVN repositories
6+
without any specific front end. See plugins such as SourceViewVC
7+
and SourceWebSVN if you are using these front ends.
8+
9+
## Requirements
10+
11+
The **SourceSVN** plugin requires Mantis 1.2.x. See the
12+
[README](../README.md#requirements) for further information.
13+
14+
Ensure that all of the following plugins are installed:
15+
* **Source**
16+
* **SourceSVN**
17+
18+
See the [README](../README.md#installation) for overall instructions
19+
with regard to installing SourceIntegration plugins.
20+
21+
## Configuration of the Plugin
22+
23+
1. Click the *Manage* link in the navigation bar.
24+
25+
2. Click the *Manage Plugins* link in the management navigation bar.
26+
27+
3. Click the *Source Control Integration* link.
28+
29+
4. Scroll down the page until you see the section *Source Subversion Integration*. There are currently 4 options to configure.
30+
31+
| Option | Notes |
32+
| ------------------------ | -------------- |
33+
| SVN: Path to binary | This should be the directory which contains the `svn` (or `svn.exe` on Windows) executable |
34+
| SVN: Command arguments | List any command arguments which always need to be supplied when calling the SVN binary. If you are hosting on IIS, it's likely that the worker process will have no home directory, which will cause SVN to throw an error. You can avoid this by creating an empty directory & entering `--config-dir c:\path\to\empty\dir` within this option field |
35+
| SVN: Trust All SSL Certs | Enable this if your SVN repository is hosted on a service that uses a self-signed certificate |
36+
| SVN: Use Windows 'start' | |
37+
38+
5. Click *Update Configuration* when you're done.
39+
40+
## Configuration of a Repository
41+
42+
1. Click the *Repositories* link in the navigation bar.
43+
44+
2. In the *Create Repository* section:
45+
46+
- Enter the repository name in the *Name* text field.
47+
- Select *SVN* from the *Type* pop-up menu.
48+
- Click the *Create Repository* button.
49+
50+
3. This will take you to the *Update Repository* page where you'll need to fill in all the details for the repository:
51+
52+
- The *Name* field should be pre-populated with the name you entered in Step 2a above.
53+
- Paste in the SVN repository's URL in the *URL* field (e.g. `https://localhost.localdomain/repos/myrepo` or `file:///var/repos/myrepo`).
54+
- If access controls are configured on your SVN repository such that anonymous read access is not permitted, within the *SVN Username* and *SVN Password*, enter appropriate credentials that have read access to the repo.
55+
- If you use a "standard" repository layout, where the top-level of the repository contains `/trunk`, `/branches` and `/tags`, then enable the *Standard Repository option
56+
- If you use a non-standard repository layout, enter the path to the *trunk*, *branches* and *tags* directories into the following 3 option fields, e.g. `/my_new_product/trunk`, `/my_new_product/branches`, `/my_new_product/tags`. See the [SVN book](http://svnbook.red-bean.com/en/1.5/svn.branchmerge.maint.html) for more details of repository layouts
57+
- If you use a non-standard repository layout and you want to ignore commits to the repository that are not changing files within the *Trunk Path*, *Branch Path* or *Tag Path* directories (which is the most likely case), then enable the *Ignore Other Paths* option.
58+
- Click the *Update Repository* button.
59+
60+
4. Click the *Import Everything* button to test connectivity and perform an initial import of the repository changesets.
61+
62+
**Note:** This may take a long time or even fail for large repositories.

docs/CONFIGURING.SourceViewVC.md

Lines changed: 19 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ Ensure that all of the following plugins are installed:
1414
* **Source**
1515
* **SourceSVN**
1616
* **SourceViewVC**
17+
1718
See the [README](../README.md#installation) for overall instructions.
1819

19-
## Configuration
20+
## Configuration of SVN
21+
22+
See [SourceSVN](CONFIGURING.SourceSVN.md#configuration-of-the-plugin)
23+
24+
## Configuration of a Repository
2025

2126
1. Click the *Repositories* link in the navigation bar.
2227

@@ -26,45 +31,19 @@ See the [README](../README.md#installation) for overall instructions.
2631
- Select *ViewVC* from the *Type* pop-up menu.
2732
- Click the *Create Repository* button.
2833

29-
3. This will take you to the *Update Repository* page where you'll need to fill
30-
in all the details for the repository:
31-
32-
- The *Name* field should be pre-populated with the name you entered in Step
33-
2a above.
34-
35-
- Paste in the SVN repository's URL in the *URL* field
36-
(e.g. `https://localhost.localdomain/repos/myrepo` or
37-
`file:///var/repos/myrepo`).
38-
39-
- Paste in the ViewVC installation's root URL in the *ViewVC URL* field
40-
(e.g. `http://viewvc-server/viewvc/`).
41-
42-
- Enter the name of the SVN repository, as it appears in the list seen in
43-
ViewVC, in the *ViewVC Name* field
44-
(e.g. `myrepo`).
45-
46-
- If the ViewVC installation has the `root_as_url_component` option enabled
47-
(see the `viewvc.conf` file) then enable the *ViewVC Root As URL Component
48-
Enabled?* field.
49-
50-
- If the ViewVC installation has the checkout view enabled (the
51-
`allowed_views` field list includes `co` in the `viewvc.conf` file) then
52-
enable the *ViewVC Checkout View Enabled?* field.
53-
54-
- Enter the username of a user which has read access to the SVN repository in
55-
the *SVN Username* field (e.g. "repo-user").
56-
57-
- Enter the password for the user in the *SVN Password* field
58-
(e.g. "Sup4rSecre7").
59-
60-
- If your repository is configured with the standard `trunk`, `branches` &
61-
`tags` folders at the top-level, select the *Standard Repository* field,
62-
otherwise enter the appropriate paths into the *Trunk Path*, *Branch Path*
63-
and *Tag Path* fields.
64-
34+
3. This will take you to the *Update Repository* page where you'll need to fill in all the details for the repository:
35+
36+
- The *Name* field should be pre-populated with the name you entered in Step 2a above.
37+
- Paste in the SVN repository's URL in the *URL* field (e.g. `https://localhost.localdomain/repos/myrepo` or `file:///var/repos/myrepo`).
38+
- Paste in the ViewVC installation's root URL in the *ViewVC URL* field (e.g. `http://viewvc-server/viewvc/`).
39+
- Enter the name of the SVN repository, as it appears in the list seen in ViewVC, in the *ViewVC Name* field (e.g. `myrepo`).
40+
- If the ViewVC installation has the `root_as_url_component` option enabled (see the `viewvc.conf` file) then enable the *ViewVC Root As URL Component Enabled?* field.
41+
- If the ViewVC installation has the checkout view enabled (the `allowed_views` field list includes `co` in the `viewvc.conf` file) then enable the *ViewVC Checkout View Enabled?* field.
42+
- Enter the username of a user which has read access to the SVN repository in the *SVN Username* field (e.g. "repo-user").
43+
- Enter the password for the user in the *SVN Password* field (e.g. "Sup4rSecre7").
44+
- If your repository is configured with the standard `trunk`, `branches` & `tags` folders at the top-level, select the *Standard Repository* field, otherwise enter the appropriate paths into the *Trunk Path*, *Branch Path* and *Tag Path* fields.
6545
- Click the *Update Repository* button.
6646

67-
4. Click the *Import Everything* button to test connectivity and perform an
68-
initial import of the repository changesets.
47+
4. Click the *Import Everything* button to test connectivity and perform an initial import of the repository changesets.
6948

70-
**Note:** This may take a long time or even fail for large repositories.
49+
**Note:** This may take a long time or even fail for large repositories.

0 commit comments

Comments
 (0)