hgbook
changeset 959:b3cb66d935cf
Finished tour-merge.tex
author | Romain PELISSE <belaran@gmail.com> |
---|---|
date | Mon Feb 23 23:53:18 2009 +0100 (2009-02-23) |
parents | f42151a42f9e |
children | e3913a4b5b26 |
files | fr/tour-merge.tex |
line diff
1.1 --- a/fr/tour-merge.tex Sun Feb 22 16:52:18 2009 +0100 1.2 +++ b/fr/tour-merge.tex Mon Feb 23 23:53:18 2009 +0100 1.3 @@ -261,51 +261,54 @@ 1.4 et enfin effectuer le \textit{commit} du fichier: 1.5 \interaction{tour-merge-conflict.commit} 1.6 1.7 -\section{Simplifying the pull-merge-commit sequence} 1.8 +\section{Simplifier l'enchaînement de \textit{pull-merge-commit} } 1.9 \label{sec:tour-merge:fetch} 1.10 1.11 -The process of merging changes as outlined above is straightforward, 1.12 -but requires running three commands in sequence. 1.13 +Le processus de fusion des modifications, comme indiqué ci dessus, 1.14 +est simple, mais il requiert d'exécuter 3 commandes de suite. 1.15 \begin{codesample2} 1.16 hg pull 1.17 hg merge 1.18 hg commit -m 'Merged remote changes' 1.19 \end{codesample2} 1.20 -In the case of the final commit, you also need to enter a commit 1.21 -message, which is almost always going to be a piece of uninteresting 1.22 -``boilerplate'' text. 1.23 - 1.24 -It would be nice to reduce the number of steps needed, if this were 1.25 -possible. Indeed, Mercurial is distributed with an extension called 1.26 -\hgext{fetch} that does just this. 1.27 - 1.28 -Mercurial provides a flexible extension mechanism that lets people 1.29 -extend its functionality, while keeping the core of Mercurial small 1.30 -and easy to deal with. Some extensions add new commands that you can 1.31 -use from the command line, while others work ``behind the scenes,'' 1.32 -for example adding capabilities to the server. 1.33 - 1.34 -The \hgext{fetch} extension adds a new command called, not 1.35 -surprisingly, \hgcmd{fetch}. This extension acts as a combination of 1.36 -\hgcmd{pull}, \hgcmd{update} and \hgcmd{merge}. It begins by pulling 1.37 -changes from another repository into the current repository. If it 1.38 -finds that the changes added a new head to the repository, it begins a 1.39 -merge, then commits the result of the merge with an 1.40 -automatically-generated commit message. If no new heads were added, 1.41 -it updates the working directory to the new tip changeset. 1.42 - 1.43 -Enabling the \hgext{fetch} extension is easy. Edit your 1.44 -\sfilename{.hgrc}, and either go to the \rcsection{extensions} section 1.45 -or create an \rcsection{extensions} section. Then add a line that 1.46 -simply reads ``\Verb+fetch +''. 1.47 +Dans le cas d'un \textit{commit} final, vous avez aussi besoin 1.48 +de saisir un message, qui sera presque systématiquemetn un texte 1.49 +sans grand interêt, juste pour mentionner qu'un \textit{merge} a 1.50 +eu lieu. 1.51 + 1.52 +Il serait agréable de pouvoir réduire le nombre d'étape nécessaire. 1.53 +En effet, Mercurial est distribué avec une extension nommée \hg{fetch} 1.54 +qui le permet. 1.55 + 1.56 +Mercurial fournit un méchanisme flexible d'extension qui permet à 1.57 +quiquonque d'ajouter des fonctionnalités, tout en conservant le 1.58 +coeur de Mercurial relativement petit et facile à maintenir. Quelques 1.59 +extensions ajoutent des nouvelles commandes que vous pouvez utiliser 1.60 +depuis votre terminal, alors que d'autres opèrent ``dans les coulisses'', 1.61 +pour ajouter par exemple des fonctionnalités au server. 1.62 + 1.63 +L'extension \hgext{fetch} ajoute une nouvelle commande appelée, sans 1.64 +surprise, \hgcmd{fetch}. Cette extension agit comme une combinaison 1.65 +de \hgcmd{pull}, \hgupdate{update} et \hgcmd{merge}. Elle commence 1.66 +par faire un \textit{pull} des modifications depuis un autre dépôt dans 1.67 +le dépôt local. Si elle trouve des modifications ajoutés à la \textit{head} 1.68 +du dépôt, elle commencera à effectuer le \textit{merge}, puis elle 1.69 +déclenchera le \textit{commit} du résultat avec un message généré 1.70 +automatiquement. Si aucune nouvell \textit{head} n'est ajouté elle 1.71 +met à jour l'espace de travail avec le nouveau \textit{tip}. 1.72 + 1.73 +Activé l'extension \hgext{fetch} est très facile. Ouvrez le fichier 1.74 +\sfilename{.hgrc}, et, soit allez dans la section \rcsection{extensions} 1.75 +ou créer une section \rcsection{extensions} si elle absente. Ensuite, 1.76 +ajoutée une ligne qui contient simplement ``\Verb+fetch +''. 1.77 \begin{codesample2} 1.78 [extensions] 1.79 fetch = 1.80 \end{codesample2} 1.81 -(Normally, on the right-hand side of the ``\texttt{=}'' would appear 1.82 -the location of the extension, but since the \hgext{fetch} extension 1.83 -is in the standard distribution, Mercurial knows where to search for 1.84 -it.) 1.85 +(Normalement, à droite du signe ``\texttt{=}'' on verrait apparaître 1.86 +l'adresse de l'extension sur le système, mais comme \hgext{fetch} est 1.87 +une extension distribué avec Mercurial, ce dernier sait où la 1.88 +retrouver.) 1.89 1.90 %%% Local Variables: 1.91 %%% mode: latex