hgbook

diff en/mq.tex @ 283:4ed483f08e33

Mention how to define mq alias.
author Faheem Mitha <faheem@email.unc.edu>
date Mon Dec 31 20:13:11 2007 -0800 (2007-12-31)
parents 7a6bd93174bd
children 814698eebbaf
line diff
     1.1 --- a/en/mq.tex	Mon Dec 31 20:06:58 2007 -0800
     1.2 +++ b/en/mq.tex	Mon Dec 31 20:13:11 2007 -0800
     1.3 @@ -852,9 +852,21 @@
     1.4  directory is a repository, it will automatically \hgcmd{add} every
     1.5  patch that you create and import.
     1.6  
     1.7 -Finally, MQ provides a shortcut command, \hgxcmd{mq}{qcommit}, that runs
     1.8 +MQ provides a shortcut command, \hgxcmd{mq}{qcommit}, that runs
     1.9  \hgcmd{commit} in the \sdirname{.hg/patches} directory.  This saves
    1.10 -some cumbersome typing.
    1.11 +some bothersome typing.
    1.12 +
    1.13 +Finally, as a convenience to manage the patch directory, you can
    1.14 +define the alias \command{mq} on Unix systems. For example, on Linux
    1.15 +systems using the \command{bash} shell, you can include the following
    1.16 +snippet in your \tildefile{.bashrc}.
    1.17 +
    1.18 +\begin{codesample2}
    1.19 +  alias mq=`hg -R \$(hg root)/.hg/patches'
    1.20 +\end{codesample2}
    1.21 +
    1.22 +You can then issue commands of the form \cmdargs{mq}{pull} from
    1.23 +the main repository.
    1.24  
    1.25  \subsection{A few things to watch out for}
    1.26