RedmineRepositories » History » Version 1
Jean-Philippe Lang, 2007-12-07 21:27
1 | 1 | Jean-Philippe Lang | h1. Repositories |
---|---|---|---|
2 | |||
3 | Redmine natively supports integration with different SCM: "Subversion":http://subversion.tigris.org/, "CVS":http://www.nongnu.org/cvs/, "Mercurial":http://www.nongnu.org/cvs/, "Darcs":http://darcs.net/ and "Bazaar":http://bazaar-vcs.org/ (as of r950). |
||
4 | |||
5 | Note that you need to install the appropriate binaries on your Redmine host. |
||
6 | For exemple, if you want to access Subversion repositories in Redmine, you'll have to install the svn binaries on the Redmine host. |
||
7 | |||
8 | h2. Attaching an existing repository to a project |
||
9 | |||
10 | In the project settings, make sure that the 'Repository' module is enabled and go to the 'Repository' tab. |
||
11 | Select the SCM that corresponds to your repository and enter the path or URL of your repository. |
||
12 | |||
13 | *Important*: When you first browse the repository, Redmine retreives the description of all of the existing commits and stores them in the database. |
||
14 | This is done only once per repository but can very long (or even time out) if your repository has hundreds of commits. |
||
15 | |||
16 | To avoid this, you can do it offline. |
||
17 | After having your repository declared in Redmine, run the following command: |
||
18 | |||
19 | ruby script/runner "Repository.fetch_changesets" -e production |
||
20 | |||
21 | All commits will be retrieved in the Redmine database. |
||
22 | |||
23 | h3. Subversion repository |
||
24 | |||
25 | Usual protocols are supported (eg. @http:@, @svn:@, @file:@), just enter the URL of the repository. |
||
26 | |||
27 | Exemple: |
||
28 | |||
29 | <pre> |
||
30 | http://host/path/to/the/repository |
||
31 | </pre> |
||
32 | |||
33 | You can specify a username and password if the repository requires authentication. |
||
34 | |||
35 | Note: if you want to access the repository using @svn+ssh://@, you'll have to configure svn+ssh to be non-interactive. |
||
36 | This requires to setup a public/private key pair for ssh authentication. |
||
37 | |||
38 | h3. CVS repository |
||
39 | |||
40 | Enter the URL of the repository (it can be either a path or a conncetion string, eg. @:pserver@) and the module name. |
||
41 | |||
42 | Exemple: |
||
43 | |||
44 | :pserver:login:password@host:/path/to/the/repository |