hgbook

diff es/mq-ref.tex @ 496:2de9cda0c7f8

merged work from ikks
author Javier Rojas <jerojasro@devnull.li>
date Wed Jan 07 23:42:24 2009 -0500 (2009-01-07)
parents 419853691d11
children 3e176d56ab84
line diff
     1.1 --- a/es/mq-ref.tex	Tue Jan 06 23:07:32 2009 -0500
     1.2 +++ b/es/mq-ref.tex	Wed Jan 07 23:42:24 2009 -0500
     1.3 @@ -137,57 +137,61 @@
     1.4    parche, antes de los datos del parche.
     1.5  \end{itemize}
     1.6  
     1.7 -\subsection{\hgxcmd{mq}{qnext}---print the name of the next patch}
     1.8 -
     1.9 -The \hgxcmd{mq}{qnext} command prints the name name of the next patch in
    1.10 -the \sfilename{series} file after the topmost applied patch.  This
    1.11 -patch will become the topmost applied patch if you run \hgxcmd{mq}{qpush}.
    1.12 -
    1.13 -\subsection{\hgxcmd{mq}{qpop}---pop patches off the stack}
    1.14 -
    1.15 -The \hgxcmd{mq}{qpop} command removes applied patches from the top of the
    1.16 -stack of applied patches.  By default, it removes only one patch.
    1.17 -
    1.18 -This command removes the changesets that represent the popped patches
    1.19 -from the repository, and updates the working directory to undo the
    1.20 -effects of the patches.
    1.21 -
    1.22 -This command takes an optional argument, which it uses as the name or
    1.23 -index of the patch to pop to.  If given a name, it will pop patches
    1.24 -until the named patch is the topmost applied patch.  If given a
    1.25 -number, \hgxcmd{mq}{qpop} treats the number as an index into the entries in
    1.26 -the series file, counting from zero (empty lines and lines containing
    1.27 -only comments do not count).  It pops patches until the patch
    1.28 -identified by the given index is the topmost applied patch.
    1.29 -
    1.30 -The \hgxcmd{mq}{qpop} command does not read or write patches or the
    1.31 -\sfilename{series} file.  It is thus safe to \hgxcmd{mq}{qpop} a patch that
    1.32 -you have removed from the \sfilename{series} file, or a patch that you
    1.33 -have renamed or deleted entirely.  In the latter two cases, use the
    1.34 -name of the patch as it was when you applied it.
    1.35 -
    1.36 -By default, the \hgxcmd{mq}{qpop} command will not pop any patches if the
    1.37 -working directory has been modified.  You can override this behaviour
    1.38 -using the \hgxopt{mq}{qpop}{-f} option, which reverts all modifications in
    1.39 -the working directory.
    1.40 -
    1.41 -Options:
    1.42 -\begin{itemize}
    1.43 -\item[\hgxopt{mq}{qpop}{-a}] Pop all applied patches.  This returns the
    1.44 -  repository to its state before you applied any patches.
    1.45 -\item[\hgxopt{mq}{qpop}{-f}] Forcibly revert any modifications to the
    1.46 -  working directory when popping.
    1.47 -\item[\hgxopt{mq}{qpop}{-n}] Pop a patch from the named queue.
    1.48 -\end{itemize}
    1.49 -
    1.50 -The \hgxcmd{mq}{qpop} command removes one line from the end of the
    1.51 -\sfilename{status} file for each patch that it pops.
    1.52 -
    1.53 -\subsection{\hgxcmd{mq}{qprev}---print the name of the previous patch}
    1.54 -
    1.55 -The \hgxcmd{mq}{qprev} command prints the name of the patch in the
    1.56 -\sfilename{series} file that comes before the topmost applied patch.
    1.57 -This will become the topmost applied patch if you run \hgxcmd{mq}{qpop}.
    1.58 +\subsection{\hgxcmd{mq}{qnext}---imprimir el nombre del próximo parche}
    1.59 +
    1.60 +La orden \hgxcmd{mq}{qnext} imprime el nombre del siguiente parche en
    1.61 +el fichero \sfilename{series} a continuación del último parche
    1.62 +aplicado.  Este parche sería el próximo parche a aplicar si se
    1.63 +ejecutara la orden \hgxcmd{mq}{qpush}.
    1.64 +
    1.65 +\subsection{\hgxcmd{mq}{qpop}---sustraer parches de la pila}
    1.66 +
    1.67 +La orden \hgxcmd{mq}{qpop} elimina los parches aplicados del tope de
    1.68 +la pila de parches aplicados.  De forma predeterminada solamente
    1.69 +remueve un parche.
    1.70 +
    1.71 +Esta orden elimina los conjuntos de cambios que representan los
    1.72 +parches sustraídos del repositorio, y actualiza el directorio de
    1.73 +trabajo para deshacer los efectos de los parches.
    1.74 +
    1.75 +Esta orden toma un argumento opcional, que usa como el nombre o el
    1.76 +índice del parche que desea sustraer.  Si se da el nombre, sustraerá
    1.77 +los parches hasta que el parche nombrado sea el último parche
    1.78 +aplicado.  Si se da un número, \hgxcmd{mq}{qpop} lo trata como un
    1.79 +índice dentro del fichero \sfilename{series},  contando desde
    1.80 +cero(no cuenta las líneas vacías o aquellas que sean únicamente
    1.81 +comentarios).  Sustrae los parches hasta que el parche identificado
    1.82 +por el índice sea el último parche aplicado.
    1.83 +
    1.84 +La orden \hgxcmd{mq}{qpop} no lee o escribe parches en el fichero
    1.85 +\sfilename{series}.  \hgxcmd{mq}{qpop} se constituye por tanto en una
    1.86 +forma segura de sustraer un parche del fichero \sfilename{series} o un
    1.87 +parche que ha eliminado o renombrado completamente.  En los dos
    1.88 +últimos casos, use el nombre del parche tal como lo hizo cuando lo
    1.89 +aplicó.
    1.90 +
    1.91 +De forma predeterminada, la orden \hgxcmd{mq}{qpop} no sustraerá
    1.92 +parche alguno si el directorio de trabajo ha sido modificado.  Puede
    1.93 +modificar este comportamiento con la opción \hgxopt{mq}{qpop}{-f}, que
    1.94 +revierte todas las modificaciones del directorio de trabajo.
    1.95 +
    1.96 +Opciones:
    1.97 +\begin{itemize}
    1.98 +\item[\hgxopt{mq}{qpop}{-a}] Sustrae todos los parches aplicados.
    1.99 +  Restaura el repositorio al estado antes de haber aplicado parche alguno.
   1.100 +\item[\hgxopt{mq}{qpop}{-f}] Revertir forzadamente cualquier
   1.101 +  modificación del directorio de trabajo cuando se hace sustracciones.
   1.102 +\item[\hgxopt{mq}{qpop}{-n}] Sustraer un parche de la cola dado un nombre.
   1.103 +\end{itemize}
   1.104 +
   1.105 +La orden \hgxcmd{mq}{qpop} elimina una línea del final del fichero
   1.106 +\sfilename{status} por cada parche que se sustrae.
   1.107 +
   1.108 +\subsection{\hgxcmd{mq}{qprev}---imprimir el nombre del parche anterior}
   1.109 +
   1.110 +La orden \hgxcmd{mq}{qprev} imprime el nombre del parche en el fichero
   1.111 +\sfilename{series} que está antes del último parche aplicado.   Este
   1.112 +se volverá el último parche aplicado si ejecuta \hgxcmd{mq}{qpop}.
   1.113  
   1.114  \subsection{\hgxcmd{mq}{qpush}---push patches onto the stack}
   1.115  \label{sec:mqref:cmd:qpush}