Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
mercurial [Le 18/05/2010, 13:10]
129.194.8.73
mercurial [Le 11/09/2022, 12:05] (Version actuelle)
moths-art 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)
Ligne 1: Ligne 1:
-{{tag>Intrepid debian ​serveur réseau système ​mercurial hg tutorial tutoriel apache2 BROUILLON}}+{{tag>Xenial ​serveur réseau système}}
  
 ---- ----
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'​utiliser.</​note>​+Cette page vous présente comment installer un serveur Mercurial sur un système linux ayant [[:APT]] ainsi que comment l'​utiliser.
  
 <note tip> <note tip>
 Mercurial est un outil de gestion de versions décentralisés comme git, Bazaar, Darcs, Monotone, SVK ou GNU Arch.\\ Mercurial est un outil de gestion de versions décentralisés comme git, Bazaar, Darcs, Monotone, SVK ou GNU Arch.\\
-Pourquoi mercurial ? Il très est facile à mettre en place et à utiliser.+Pourquoi mercurial ? Il est très facile à mettre en place et à utiliser.
 </​note>​ </​note>​
  
-===== Pré-requis ===== 
- 
-  * Disposer des [[:​sudo|droits d'​administration]]. 
-  * Disposer d'une connexion à Internet configurée et activée. 
-  * Avoir activé l'​accès aux [[:​depots#​universe_et_multiverse|dépôts Universe et Multiverse]]. 
  
 ===== Installation ===== ===== Installation =====
  
-[[:​tutoriel:​comment_installer_un_paquet|Installez le paquet]] **[[apt://​mercurial|mercurial]]**.+[[:​tutoriel:​comment_installer_un_paquet|Installez le paquet]] **[[apt>mercurial]]**.
  
-testez que mercurial est bien installé :  +testez que mercurial est bien installé : <code bash>hg version</​code>​
- +
-  ​hg version+
   ​   ​
-Vous deviez ​obtenir quelque chose comme ça la version près.+Vous devriez ​obtenir quelque chose comme ça à la version près : <code bash>​Mercurial Distributed SCM (version 3.7.3) 
 +(see https://​mercurial-scm.org for more information)
  
-  Mercurial Distributed SCM (version 1.3.1)+Copyright ​(C) 2005-2016 Matt Mackall and others 
 +This is free software; see the source for copying conditionsThere is NO 
 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</​code>​
  
-  Copyright (C) 2005-2009 Matt Mackall <​mpm@selenic.com>​ and others 
-  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'​abord,​ créez un dossier ​ou stocker ​nos repositories +Tout d'​abord,​ créez un dossier ​où stocker les dépôts et ses sous-dossiers <code bash>​sudo ​mkdir -p /​var/​hg/​repositories /​var/​hg/​tools</​code>​ 
- +Puis mettez à jour la base de données index.cgi : ​ <code bash>​sudo updatedb</​code>​ 
-  mkdir /var/hg/ +Enfin copiez ​le fichier ​''​index.cgi'' ​de **/usr/share/​gitweb** ​vers **/​var/​hg/​tools** : <​code>​sudo ​cp /usr/share/​gitweb/index.cgi /​var/​hg/​tools/​index.cgi</​code>
- +
-créez ​les répertoires suivants ​ +
-   +
-  ​mkdir /​var/​hg/​repositories +
-  mkdir /​var/​hg/​tools +
- +
-copier ​le fichier index.cgi de /var/hg-tools ​vers /​var/​hg/​tools +
- +
-  ​cp /var/hg-tools/index.cgi /​var/​hg/​tools/​index.cgi +
- +
-<note help>Si vous ne trouvez pas index.cgi faite un  +
-  updatedb  +
-puis  +
-  locate index.cgi +
-</note> +
-===== Premier Repository ===== +
- +
-Votre premier repository :  +
- +
-  mkdir /​var/​hg/​repositories/​mon_repo +
-  chown www-data:​www-data /​var/​hg/​repositories/​mon_repo +
-  hg init /​var/​hg/​repositories/​mon_repo +
- +
-<note info> +
-  mkdir /​var/​hg/​repositories/​mon_repo +
-Crée le répertoire +
-  chown www-data:​www-data /​var/​hg/​repositories/​mon_repo +
-Attribut le répertoire à l'​utilisateur d'​apache2 +
-  hg init /​var/​hg/​repositories/​mon_repo +
-Initialise le repository +
-</​note>​ +
-[[:​tutoriel:​comment_modifier_un_fichier|créez le fichier]] **/​var/​hg/​tools/​hgweb.config** puis ajouter les lignes suivantes : +
  
-  [paths] +<note help>Si vous ne trouvez pas index.cgi faites un : <​code>​locate index.cgi<​/code> pour trouver dans quel dossier il se trouve.</note>
-  mon_repo = /var/​hg/​repositories/​mon_repo/+
  
-si vous créez un deuxième repo, même manipulation que pour le premier : +===== Premier dépôt =====
  
-  ​mkdir /​var/​hg/​repositories/​mon_repo2 +Votre premier dépôt : <code bash>​sudo ​mkdir /​var/​hg/​repositories/​mon_repo 
-  chown www-data:​www-data /​var/​hg/​repositories/​mon_repo2 +sudo chown www-data:​www-data /​var/​hg/​repositories/​mon_repo 
-  hg init /​var/​hg/​repositories/​mon_repo2+sudo hg init /​var/​hg/​repositories/​mon_repo</​code>​
  
-[[:​tutoriel:​comment_modifier_un_fichier|éditez ​le fichier]] **/​var/​hg/​tools/​hgweb.config** pour avoir : +[[:​tutoriel:​comment_modifier_un_fichier|Créez le fichier]] **/​var/​hg/​tools/​hgweb.config** puis ajoutez les lignes suivantes :  
 +<​file>​ 
 +[paths] 
 +mon_repo = /​var/​hg/​repositories/​mon_repo/​ 
 +</​file>​ 
 +si vous créez un deuxième dépôt, même manipulation que pour le premier : 
 +<code bash>​sudo mkdir /​var/​hg/​repositories/​mon_repo2 
 +sudo chown www-data:​www-data /​var/​hg/​repositories/​mon_repo2 
 +sudo hg init /​var/​hg/​repositories/​mon_repo2</​code>​ 
 +[[:​tutoriel:​comment_modifier_un_fichier|Éditez ​le fichier]] **/​var/​hg/​tools/​hgweb.config** pour avoir :  
 +<​file>​ 
 +[paths] 
 +mon_repo = /​var/​hg/​repositories/​mon_repo/​ 
 +mon_repo2 = /​var/​hg/​repositories/​mon_repo2/</​file>​
  
-  [paths] 
-  mon_repo = /​var/​hg/​repositories/​mon_repo/​ 
-  mon_repo2 = /​var/​hg/​repositories/​mon_repo2/​ 
  
 ===== Désinstallation ===== ===== Désinstallation =====
Ligne 91: Ligne 61:
 ===== Liens ===== ===== Liens =====
  
-  * **(fr, en)** [[http://​mercurial.selenic.com/​wiki/|Site officiel de mercurial]]+  * **(fr, en)** [[https://www.mercurial-scm.org/|Site officiel de mercurial]]
  • mercurial.1274181027.txt.gz
  • Dernière modification: Le 18/05/2010, 13:10
  • par 129.194.8.73