FrRedmineRepositories
Version 1 (Fabrice Phung, 2008-05-02 22:57)
| 1 | 1 | Fabrice Phung | h1. Dépôts |
|---|---|---|---|
| 2 | 1 | Fabrice Phung | |
| 3 | 1 | Fabrice Phung | Redmine supporte nativement l'intégration avec différents 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), et "Bazaar":http://bazaar-vcs.org/ (depuis r950). |
| 4 | 1 | Fabrice Phung | |
| 5 | 1 | Fabrice Phung | notez que vous devrez installer les binaires appropriés sur votre hôte Redmine: |
| 6 | 1 | Fabrice Phung | |
| 7 | 1 | Fabrice Phung | |*SCM*|*Testé avec*|*Commentaires*| |
| 8 | 1 | Fabrice Phung | |Subversion|1.3 & 1.4|1.3 ou plus requis| |
| 9 | 1 | Fabrice Phung | |CVS|1.12.12|1.12 requis, ne fonctionne pas avec CVSNT| |
| 10 | 1 | Fabrice Phung | |Mercurial|0.9.3| | |
| 11 | 1 | Fabrice Phung | |Bazaar|1.0.0.candidate.1| | |
| 12 | 1 | Fabrice Phung | |Darcs|1.0.7| | |
| 13 | 1 | Fabrice Phung | |Git|1.5.4.2|depuis r1236, prévu dans Redmine 0.7| |
| 14 | 1 | Fabrice Phung | |
| 15 | 1 | Fabrice Phung | Par exemple, si vous souhaitez accéder à un dépôt Subversion dans Redmine, vous devez installer les binaires svn sur l'hôte Redmine. |
| 16 | 1 | Fabrice Phung | |
| 17 | 1 | Fabrice Phung | h2. Lier un dépôt existant à un projet |
| 18 | 1 | Fabrice Phung | |
| 19 | 1 | Fabrice Phung | Dans la configuration du projet, vérifiez que le module 'Dépôt' est activé et allez sur l'onglet 'Dépôt'. |
| 20 | 1 | Fabrice Phung | Choisissez le SCM correspondant à votre dépôt et entrez le chemin ou l'URL de votre dépôt. |
| 21 | 1 | Fabrice Phung | |
| 22 | 1 | Fabrice Phung | *Important*: Lorsque vous parcourez le dépôt pour la première fois, Redmine récupère la description de tous les commits existants et les stocke en base de données. Ceci est fait une seule fois par dépôt mais peut s'avérer très long (allant même jusqu'au time out) si votre dépôt a des centaines de commits. |
| 23 | 1 | Fabrice Phung | |
| 24 | 1 | Fabrice Phung | Pour éviter cela, vous pouvez le faire hors ligne. |
| 25 | 1 | Fabrice Phung | Après avoir déclaré votre dépôt dans Redmine, lancez la commande suivante: |
| 26 | 1 | Fabrice Phung | |
| 27 | 1 | Fabrice Phung | ruby script/runner "Repository.fetch_changesets" -e production |
| 28 | 1 | Fabrice Phung | |
| 29 | 1 | Fabrice Phung | Tous les commits seront récupérés dans la base de données de Redmine. |
| 30 | 1 | Fabrice Phung | |
| 31 | 1 | Fabrice Phung | h3. Dépôt Subversion |
| 32 | 1 | Fabrice Phung | |
| 33 | 1 | Fabrice Phung | Les protocoles communs sont supportés (cad. @http:@, @svn:@, @file:@), entrez seulement l'URL de votre dépôt. |
| 34 | 1 | Fabrice Phung | |
| 35 | 1 | Fabrice Phung | Exemple: |
| 36 | 1 | Fabrice Phung | |
| 37 | 1 | Fabrice Phung | <pre> |
| 38 | 1 | Fabrice Phung | http://hote/chemin/vers/le/depot |
| 39 | 1 | Fabrice Phung | </pre> |
| 40 | 1 | Fabrice Phung | |
| 41 | 1 | Fabrice Phung | Vous pouvez spécifier un nom d'utilisateur et un mot de passe si le dépôt requiert une authentification. |
| 42 | 1 | Fabrice Phung | |
| 43 | 1 | Fabrice Phung | Note: si vous souhaitez accéder au dépôt en utilisant @svn+ssh://@, vous aurez à configurer svn+ssh pour le rendre non interactif. |
| 44 | 1 | Fabrice Phung | Cela nécessite de configurer une paire de clefs publique/privée pour l'authentification ssh. |
| 45 | 1 | Fabrice Phung | |
| 46 | 1 | Fabrice Phung | h3. Dépôt CVS |
| 47 | 1 | Fabrice Phung | |
| 48 | 1 | Fabrice Phung | Entrez: |
| 49 | 1 | Fabrice Phung | * l'URL du dépôt (qui peut être soit un chemin ou une chaîne de connexion, exemple: @:pserver@). |
| 50 | 1 | Fabrice Phung | * le nom de module |
| 51 | 1 | Fabrice Phung | |
| 52 | 1 | Fabrice Phung | Exemple: |
| 53 | 1 | Fabrice Phung | |
| 54 | 1 | Fabrice Phung | :pserver:compte:motdepasse@hote:/chemin/vers/le/depot |