Project

General

Profile

RedmineRepositories » History » Version 9

Jean-Philippe Lang, 2008-03-23 19:08

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