Mercurial > hg > mercurial-talk
changeset 15:52d25ec38000
Described hgrc files.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 16 Aug 2009 15:12:41 +0200 |
parents | d36a777f0dd9 |
children | 966a679e4081 |
files | mercurial.tex |
diffstat | 1 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial.tex +++ b/mercurial.tex @@ -4,6 +4,9 @@ \lstdefinelanguage{hgshell}{ moredelim=[l][\bfseries]{\%}, } +\lstdefinelanguage{ini}{ + moredelim=[s][\bfseries]{[}{]}, +} \lstset{ language=hgshell, basicstyle=\footnotesize\ttfamily, @@ -428,6 +431,21 @@ \end{lstlisting} \end{frame} +\begin{frame}[fragile]{Settings} + You configure Mercurial using configuration files: + \begin{itemize} + \item \path{/etc/mercurial/hgrc} holds global settings + \item \path{~/.hgrc} holds per-user settings + \item \path{.hg/hgrc} holds per-repository settings + \item username in previous commit came from \path{~/.hgrc}: +\begin{lstlisting}[language=ini] +[ui] +username = Martin Geisler <mg@lazybytes.net> +\end{lstlisting} + \end{itemize} +\end{frame} + + \begin{frame}[fragile]{Examining Differences} Change the output from ``hello, world'' to ``Hello World!''. @@ -454,8 +472,6 @@ \end{frame} -\begin{frame}{Settings} -\end{frame} \subsection{Working with a Repository}