Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| mercurial [Le 14/04/2012, 16:42] – [Configuration] orthographe 88.183.58.161 | mercurial [Le 11/09/2022, 12:05] (Version actuelle) – Suppression des espaces en fin de ligne (détecté et corrigé via le bot wiki-corrector (https://forum.ubuntu-fr.org/viewtopic.php?id=2067892) moths-art | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{tag>Intrepid | + | {{tag>Xenial |
| ---- | ---- | ||
| Ligne 5: | Ligne 5: | ||
| ====== Installation d'un serveur mercurial ====== | ====== Installation d'un serveur mercurial ====== | ||
| - | <note help>Cette page vous présente comment installer un serveur Mercurial sur un système linux ayant APT ainsi que comment l' | + | Cette page vous présente comment installer un serveur Mercurial sur un système linux ayant [[:APT]] ainsi que comment l' |
| <note tip> | <note tip> | ||
| Ligne 12: | Ligne 12: | ||
| </ | </ | ||
| - | ===== Pré-requis ===== | ||
| - | |||
| - | * Disposer des [[: | ||
| - | * Disposer d'une connexion à Internet configurée et activée. | ||
| - | * Avoir activé l' | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | [[: | + | [[: |
| - | testez que mercurial est bien installé : | + | testez que mercurial est bien installé : <code bash>hg version</ |
| - | + | ||
| - | | + | |
| | | ||
| - | Vous deviez | + | Vous devriez |
| + | (see https:// | ||
| - | Mercurial Distributed SCM (version 1.3.1) | + | Copyright |
| + | This is free software; see the source for copying conditions. There is NO | ||
| + | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</ | ||
| - | Copyright (C) 2005-2009 Matt Mackall < | ||
| - | This is free software; see the source for copying conditions. There is NO | ||
| - | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| - | Tout d' | + | Tout d' |
| - | + | Puis mettez à jour la base de données index.cgi : | |
| - | mkdir /var/hg/ | + | Enfin copiez le fichier |
| - | + | ||
| - | créez | + | |
| - | + | ||
| - | | + | |
| - | mkdir / | + | |
| - | + | ||
| - | copiez le fichier index.cgi de /var/hg-tools | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | <note help>Si vous ne trouvez pas index.cgi faites un | + | |
| - | updatedb | + | |
| - | puis | + | |
| - | locate index.cgi | + | |
| - | </note> | + | |
| - | ===== Premier Repository ===== | + | |
| - | + | ||
| - | Votre premier repository : | + | |
| - | + | ||
| - | mkdir / | + | |
| - | chown www-data: | + | |
| - | hg init / | + | |
| - | + | ||
| - | <note info> | + | |
| - | mkdir / | + | |
| - | Crée le répertoire | + | |
| - | chown www-data: | + | |
| - | Attribut le répertoire à l' | + | |
| - | hg init / | + | |
| - | Initialise le repository | + | |
| - | </ | + | |
| - | [[: | + | |
| - | [paths] | + | <note help>Si vous ne trouvez pas index.cgi faites un : < |
| - | mon_repo = /var/ | + | |
| - | si vous créez un deuxième repo, même manipulation que pour le premier : | + | ===== Premier dépôt ===== |
| - | | + | Votre premier dépôt : <code bash> |
| - | chown www-data: | + | sudo chown www-data: |
| - | hg init / | + | sudo hg init / |
| - | [[: | + | [[: |
| + | < | ||
| + | [paths] | ||
| + | mon_repo = / | ||
| + | </ | ||
| + | si vous créez un deuxième dépôt, même manipulation que pour le premier : | ||
| + | <code bash> | ||
| + | sudo chown www-data: | ||
| + | sudo hg init / | ||
| + | [[: | ||
| + | < | ||
| + | [paths] | ||
| + | mon_repo = / | ||
| + | mon_repo2 = / | ||
| - | [paths] | ||
| - | mon_repo = / | ||
| - | mon_repo2 = / | ||
| ===== Désinstallation ===== | ===== Désinstallation ===== | ||
| Ligne 91: | Ligne 61: | ||
| ===== Liens ===== | ===== Liens ===== | ||
| - | * **(fr, en)** [[http:// | + | * **(fr, en)** [[https://www.mercurial-scm.org/|Site officiel de mercurial]] |
