annotate es/mq-ref.tex @ 586:f8614aad2cbb

chapter taken to translate to spanish
author Igor Támara <igor@tamarapatino.org>
date Tue, 06 Jan 2009 22:40:18 -0500
parents 7e52f0cc4516
children 419853691d11
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
1 \chapter{Referencia de las Colas de Mercurial}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
2 \label{chap:mqref}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
3
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
4 \section{Referencia de órdenes MQ}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
5 \label{sec:mqref:cmdref}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
6
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
7 Si desea dar un vistazo a las órdenes que ofrece MQ, use la orden
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
8 \hgcmdargs{help}{mq}.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
9
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
10 \subsection{\hgxcmd{mq}{qapplied}---imprimir los parches aplicados}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
11
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
12 La orden \hgxcmd{mq}{qapplied} imprime la pila actual de parches
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
13 aplicados. Los parches se imprimen en orden de antigüedad, primero
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
14 los más antiguos y después los más recientes, por lo tanto el último
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
15 parche de la lista es el que está en el ``tope''.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
16
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
17 \subsection{\hgxcmd{mq}{qcommit}---consignar cambios en la cola del repositorio}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
18
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
19 La orden \hgxcmd{mq}{qcommit} consigna cualquier cambio sobresaliente
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
20 en el repositorio \sdirname{.hg/patches}. Esta orden solamente
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
21 funciona si el directorio \sdirname{.hg/patches} es un repositorio,
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
22 p.e.~usted creó el directorio con
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
23 \hgcmdargs{qinit}{\hgxopt{mq}{qinit}{-c}} o ejecutó
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
24 \hgcmd{init} en el directorio después de correr \hgxcmd{mq}{qinit}.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
25
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
26 Esta orden es un atajo para \hgcmdargs{commit}{--cwd .hg/patches}.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
27
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
28 \subsection{\hgxcmd{mq}{qdelete}---elimina un parche del fichero
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
29 \sfilename{series}}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
30
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
31 La orden \hgxcmd{mq}{qdelete} elimina la entrada del fichero
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
32 \sfilename{series} para el parche en el directorio
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
33 \sdirname{.hg/patches}. No sca el parche si ha sido aplicado. De
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
34 forma predeterminada no borra el fichero del parche; use la opción
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
35 \hgxopt{mq}{qdel}{-f} para hacerlo.
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
36
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
37 Opciones:
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
38 \begin{itemize}
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
39 \item[\hgxopt{mq}{qdel}{-f}] Elimina el fichero del parche.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
40 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
41
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
42 \subsection{\hgxcmd{mq}{qdiff}---imprimir la diferencia del último
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
43 parche aplicado}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
44
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
45 La orden \hgxcmd{mq}{qdiff} imprime un diff del parche más
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
46 recientemente aplicado. Es equivalente a \hgcmdargs{diff}{-r-2:-1}.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
47
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
48 \subsection{\hgxcmd{mq}{qfold}---fusionar (``fold'') varios parches en
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
49 uno solo}
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
50
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
51 La orden \hgxcmd{mq}{qfold} fusiona muchos parches en el último parche
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
52 aplicado, de tal forma que el último parche aplicado es la unión de
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
53 todos los cambios de los parches en cuestión.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
54
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
55 Los parches a fusionar no deben haber sido aplicados;
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
56 \hgxcmd{mq}{qfold} saldrá indicando un error si alguno ha sido
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
57 aplicado. El orden en el cual los parches se pliegan es
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
58 significativo; \hgcmdargs{qfold}{a b} significa ``aplique el parche
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
59 más reciente, seguido de \texttt{a}, y seguido de \texttt{b}''.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
60
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
61 Los comentarios de los parches plegados se colocan al final de los
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
62 comentarios del parche destino, con cada bloque de comentarios
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
63 separado con tres asteriscos(``\texttt{*}''). Se usa la opción
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
64 \hgxopt{mq}{qfold}{-e} para editar el mensaje de consignación para el
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
65 conjunto de cambios/parches después de completarse el pliegue.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
66
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
67 Opciones:
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
68 \begin{itemize}
586
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
69 \item[\hgxopt{mq}{qfold}{-e}] Edita el mensaje de consignación y la
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
70 descripción del parche del parche que se ha plegado.
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
71 \item[\hgxopt{mq}{qfold}{-l}] Usa los contenidos del fichero dado como
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
72 el nuevo mensaje de consignación y descripción del parche para el
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
73 parche a plegar.
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
74 \item[\hgxopt{mq}{qfold}{-m}] Usa el texto dado como el mensaje de
f8614aad2cbb chapter taken to translate to spanish
Igor Támara <igor@tamarapatino.org>
parents: 435
diff changeset
75 consignación y descripción del parche para el parche plegado.
435
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
76 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
77
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
78 \subsection{\hgxcmd{mq}{qheader}---display the header/description of a patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
79
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
80 The \hgxcmd{mq}{qheader} command prints the header, or description, of a
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
81 patch. By default, it prints the header of the topmost applied patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
82 Given an argument, it prints the header of the named patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
83
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
84 \subsection{\hgxcmd{mq}{qimport}---import a third-party patch into the queue}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
85
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
86 The \hgxcmd{mq}{qimport} command adds an entry for an external patch to the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
87 \sfilename{series} file, and copies the patch into the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
88 \sdirname{.hg/patches} directory. It adds the entry immediately after
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
89 the topmost applied patch, but does not push the patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
90
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
91 If the \sdirname{.hg/patches} directory is a repository,
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
92 \hgxcmd{mq}{qimport} automatically does an \hgcmd{add} of the imported
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
93 patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
94
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
95 \subsection{\hgxcmd{mq}{qinit}---prepare a repository to work with MQ}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
96
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
97 The \hgxcmd{mq}{qinit} command prepares a repository to work with MQ. It
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
98 creates a directory called \sdirname{.hg/patches}.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
99
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
100 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
101 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
102 \item[\hgxopt{mq}{qinit}{-c}] Create \sdirname{.hg/patches} as a repository
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
103 in its own right. Also creates a \sfilename{.hgignore} file that
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
104 will ignore the \sfilename{status} file.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
105 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
106
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
107 When the \sdirname{.hg/patches} directory is a repository, the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
108 \hgxcmd{mq}{qimport} and \hgxcmd{mq}{qnew} commands automatically \hgcmd{add}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
109 new patches.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
110
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
111 \subsection{\hgxcmd{mq}{qnew}---create a new patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
112
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
113 The \hgxcmd{mq}{qnew} command creates a new patch. It takes one mandatory
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
114 argument, the name to use for the patch file. The newly created patch
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
115 is created empty by default. It is added to the \sfilename{series}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
116 file after the current topmost applied patch, and is immediately
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
117 pushed on top of that patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
118
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
119 If \hgxcmd{mq}{qnew} finds modified files in the working directory, it will
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
120 refuse to create a new patch unless the \hgxopt{mq}{qnew}{-f} option is
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
121 used (see below). This behaviour allows you to \hgxcmd{mq}{qrefresh} your
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
122 topmost applied patch before you apply a new patch on top of it.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
123
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
124 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
125 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
126 \item[\hgxopt{mq}{qnew}{-f}] Create a new patch if the contents of the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
127 working directory are modified. Any outstanding modifications are
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
128 added to the newly created patch, so after this command completes,
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
129 the working directory will no longer be modified.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
130 \item[\hgxopt{mq}{qnew}{-m}] Use the given text as the commit message.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
131 This text will be stored at the beginning of the patch file, before
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
132 the patch data.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
133 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
134
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
135 \subsection{\hgxcmd{mq}{qnext}---print the name of the next patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
136
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
137 The \hgxcmd{mq}{qnext} command prints the name name of the next patch in
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
138 the \sfilename{series} file after the topmost applied patch. This
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
139 patch will become the topmost applied patch if you run \hgxcmd{mq}{qpush}.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
140
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
141 \subsection{\hgxcmd{mq}{qpop}---pop patches off the stack}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
142
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
143 The \hgxcmd{mq}{qpop} command removes applied patches from the top of the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
144 stack of applied patches. By default, it removes only one patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
145
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
146 This command removes the changesets that represent the popped patches
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
147 from the repository, and updates the working directory to undo the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
148 effects of the patches.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
149
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
150 This command takes an optional argument, which it uses as the name or
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
151 index of the patch to pop to. If given a name, it will pop patches
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
152 until the named patch is the topmost applied patch. If given a
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
153 number, \hgxcmd{mq}{qpop} treats the number as an index into the entries in
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
154 the series file, counting from zero (empty lines and lines containing
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
155 only comments do not count). It pops patches until the patch
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
156 identified by the given index is the topmost applied patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
157
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
158 The \hgxcmd{mq}{qpop} command does not read or write patches or the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
159 \sfilename{series} file. It is thus safe to \hgxcmd{mq}{qpop} a patch that
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
160 you have removed from the \sfilename{series} file, or a patch that you
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
161 have renamed or deleted entirely. In the latter two cases, use the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
162 name of the patch as it was when you applied it.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
163
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
164 By default, the \hgxcmd{mq}{qpop} command will not pop any patches if the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
165 working directory has been modified. You can override this behaviour
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
166 using the \hgxopt{mq}{qpop}{-f} option, which reverts all modifications in
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
167 the working directory.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
168
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
169 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
170 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
171 \item[\hgxopt{mq}{qpop}{-a}] Pop all applied patches. This returns the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
172 repository to its state before you applied any patches.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
173 \item[\hgxopt{mq}{qpop}{-f}] Forcibly revert any modifications to the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
174 working directory when popping.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
175 \item[\hgxopt{mq}{qpop}{-n}] Pop a patch from the named queue.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
176 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
177
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
178 The \hgxcmd{mq}{qpop} command removes one line from the end of the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
179 \sfilename{status} file for each patch that it pops.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
180
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
181 \subsection{\hgxcmd{mq}{qprev}---print the name of the previous patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
182
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
183 The \hgxcmd{mq}{qprev} command prints the name of the patch in the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
184 \sfilename{series} file that comes before the topmost applied patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
185 This will become the topmost applied patch if you run \hgxcmd{mq}{qpop}.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
186
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
187 \subsection{\hgxcmd{mq}{qpush}---push patches onto the stack}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
188 \label{sec:mqref:cmd:qpush}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
189
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
190 The \hgxcmd{mq}{qpush} command adds patches onto the applied stack. By
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
191 default, it adds only one patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
192
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
193 This command creates a new changeset to represent each applied patch,
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
194 and updates the working directory to apply the effects of the patches.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
195
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
196 The default data used when creating a changeset are as follows:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
197 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
198 \item The commit date and time zone are the current date and time
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
199 zone. Because these data are used to compute the identity of a
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
200 changeset, this means that if you \hgxcmd{mq}{qpop} a patch and
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
201 \hgxcmd{mq}{qpush} it again, the changeset that you push will have a
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
202 different identity than the changeset you popped.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
203 \item The author is the same as the default used by the \hgcmd{commit}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
204 command.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
205 \item The commit message is any text from the patch file that comes
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
206 before the first diff header. If there is no such text, a default
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
207 commit message is used that identifies the name of the patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
208 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
209 If a patch contains a Mercurial patch header (XXX add link), the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
210 information in the patch header overrides these defaults.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
211
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
212 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
213 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
214 \item[\hgxopt{mq}{qpush}{-a}] Push all unapplied patches from the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
215 \sfilename{series} file until there are none left to push.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
216 \item[\hgxopt{mq}{qpush}{-l}] Add the name of the patch to the end
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
217 of the commit message.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
218 \item[\hgxopt{mq}{qpush}{-m}] If a patch fails to apply cleanly, use the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
219 entry for the patch in another saved queue to compute the parameters
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
220 for a three-way merge, and perform a three-way merge using the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
221 normal Mercurial merge machinery. Use the resolution of the merge
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
222 as the new patch content.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
223 \item[\hgxopt{mq}{qpush}{-n}] Use the named queue if merging while pushing.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
224 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
225
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
226 The \hgxcmd{mq}{qpush} command reads, but does not modify, the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
227 \sfilename{series} file. It appends one line to the \hgcmd{status}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
228 file for each patch that it pushes.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
229
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
230 \subsection{\hgxcmd{mq}{qrefresh}---update the topmost applied patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
231
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
232 The \hgxcmd{mq}{qrefresh} command updates the topmost applied patch. It
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
233 modifies the patch, removes the old changeset that represented the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
234 patch, and creates a new changeset to represent the modified patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
235
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
236 The \hgxcmd{mq}{qrefresh} command looks for the following modifications:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
237 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
238 \item Changes to the commit message, i.e.~the text before the first
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
239 diff header in the patch file, are reflected in the new changeset
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
240 that represents the patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
241 \item Modifications to tracked files in the working directory are
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
242 added to the patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
243 \item Changes to the files tracked using \hgcmd{add}, \hgcmd{copy},
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
244 \hgcmd{remove}, or \hgcmd{rename}. Added files and copy and rename
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
245 destinations are added to the patch, while removed files and rename
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
246 sources are removed.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
247 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
248
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
249 Even if \hgxcmd{mq}{qrefresh} detects no changes, it still recreates the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
250 changeset that represents the patch. This causes the identity of the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
251 changeset to differ from the previous changeset that identified the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
252 patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
253
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
254 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
255 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
256 \item[\hgxopt{mq}{qrefresh}{-e}] Modify the commit and patch description,
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
257 using the preferred text editor.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
258 \item[\hgxopt{mq}{qrefresh}{-m}] Modify the commit message and patch
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
259 description, using the given text.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
260 \item[\hgxopt{mq}{qrefresh}{-l}] Modify the commit message and patch
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
261 description, using text from the given file.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
262 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
263
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
264 \subsection{\hgxcmd{mq}{qrename}---rename a patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
265
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
266 The \hgxcmd{mq}{qrename} command renames a patch, and changes the entry for
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
267 the patch in the \sfilename{series} file.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
268
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
269 With a single argument, \hgxcmd{mq}{qrename} renames the topmost applied
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
270 patch. With two arguments, it renames its first argument to its
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
271 second.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
272
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
273 \subsection{\hgxcmd{mq}{qrestore}---restore saved queue state}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
274
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
275 XXX No idea what this does.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
276
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
277 \subsection{\hgxcmd{mq}{qsave}---save current queue state}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
278
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
279 XXX Likewise.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
280
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
281 \subsection{\hgxcmd{mq}{qseries}---print the entire patch series}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
282
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
283 The \hgxcmd{mq}{qseries} command prints the entire patch series from the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
284 \sfilename{series} file. It prints only patch names, not empty lines
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
285 or comments. It prints in order from first to be applied to last.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
286
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
287 \subsection{\hgxcmd{mq}{qtop}---print the name of the current patch}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
288
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
289 The \hgxcmd{mq}{qtop} prints the name of the topmost currently applied
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
290 patch.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
291
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
292 \subsection{\hgxcmd{mq}{qunapplied}---print patches not yet applied}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
293
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
294 The \hgxcmd{mq}{qunapplied} command prints the names of patches from the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
295 \sfilename{series} file that are not yet applied. It prints them in
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
296 order from the next patch that will be pushed to the last.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
297
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
298 \subsection{\hgcmd{strip}---remove a revision and descendants}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
299
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
300 The \hgcmd{strip} command removes a revision, and all of its
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
301 descendants, from the repository. It undoes the effects of the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
302 removed revisions from the repository, and updates the working
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
303 directory to the first parent of the removed revision.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
304
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
305 The \hgcmd{strip} command saves a backup of the removed changesets in
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
306 a bundle, so that they can be reapplied if removed in error.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
307
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
308 Options:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
309 \begin{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
310 \item[\hgopt{strip}{-b}] Save unrelated changesets that are intermixed
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
311 with the stripped changesets in the backup bundle.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
312 \item[\hgopt{strip}{-f}] If a branch has multiple heads, remove all
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
313 heads. XXX This should be renamed, and use \texttt{-f} to strip revs
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
314 when there are pending changes.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
315 \item[\hgopt{strip}{-n}] Do not save a backup bundle.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
316 \end{itemize}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
317
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
318 \section{MQ file reference}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
319
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
320 \subsection{The \sfilename{series} file}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
321
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
322 The \sfilename{series} file contains a list of the names of all
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
323 patches that MQ can apply. It is represented as a list of names, with
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
324 one name saved per line. Leading and trailing white space in each
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
325 line are ignored.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
326
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
327 Lines may contain comments. A comment begins with the ``\texttt{\#}''
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
328 character, and extends to the end of the line. Empty lines, and lines
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
329 that contain only comments, are ignored.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
330
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
331 You will often need to edit the \sfilename{series} file by hand, hence
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
332 the support for comments and empty lines noted above. For example,
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
333 you can comment out a patch temporarily, and \hgxcmd{mq}{qpush} will skip
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
334 over that patch when applying patches. You can also change the order
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
335 in which patches are applied by reordering their entries in the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
336 \sfilename{series} file.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
337
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
338 Placing the \sfilename{series} file under revision control is also
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
339 supported; it is a good idea to place all of the patches that it
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
340 refers to under revision control, as well. If you create a patch
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
341 directory using the \hgxopt{mq}{qinit}{-c} option to \hgxcmd{mq}{qinit}, this
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
342 will be done for you automatically.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
343
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
344 \subsection{The \sfilename{status} file}
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
345
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
346 The \sfilename{status} file contains the names and changeset hashes of
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
347 all patches that MQ currently has applied. Unlike the
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
348 \sfilename{series} file, this file is not intended for editing. You
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
349 should not place this file under revision control, or modify it in any
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
350 way. It is used by MQ strictly for internal book-keeping.
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
351
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
352 %%% Local Variables:
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
353 %%% mode: latex
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
354 %%% TeX-master: "00book"
7e52f0cc4516 changed es/hgext.tex
jerojasro@localhost
parents: 432
diff changeset
355 %%% End: