hgbook
changeset 454:6d4465f04bb7
Translated alias from extensions
author | Igor Támara <igor@tamarapatino.org> |
---|---|
date | Mon Dec 15 23:37:01 2008 -0500 (2008-12-15) |
parents | 3cb3f9b418ea |
children | b96d80be5a60 |
files | es/Leame.1st es/hgext.tex |
line diff
1.1 --- a/es/Leame.1st Mon Dec 15 08:14:28 2008 -0500 1.2 +++ b/es/Leame.1st Mon Dec 15 23:37:01 2008 -0500 1.3 @@ -107,12 +107,12 @@ 1.4 || filenames.tex || Javier Rojas || 72% || 27/11/2008 || || 1.5 || hook.tex || Javier Rojas || 26% || 01/12/2008 || || 1.6 || mq.tex || Igor Támara || 100% || 06/12/2008 || 13/12/2008 || 1.7 -|| hgext.tex || Igor Támara || 63% || 13/12/2008 || || 1.8 -|| template.tex || || || || || 1.9 +|| hgext.tex || Igor Támara || 75% || 13/12/2008 || || 1.10 +|| template.tex || Igor Támara || || || || 1.11 || mq-collab.tex || || || || || 1.12 || mq-ref.tex || || || || || 1.13 || cmdref.tex || || || || || 1.14 -|| license.tex || || || || || 1.15 +|| license.tex || Igor Támara || || || || 1.16 || srcinstall.tex || || || || || 1.17 1.18 == Archivos en proceso de revisión ==
2.1 --- a/es/hgext.tex Mon Dec 15 08:14:28 2008 -0500 2.2 +++ b/es/hgext.tex Mon Dec 15 23:37:01 2008 -0500 2.3 @@ -292,62 +292,64 @@ 2.4 2.5 \subsection{Definición de alias de comandos} 2.6 2.7 -It can be cumbersome to remember the options to both the 2.8 -\hgxcmd{extdiff}{extdiff} command and the diff viewer you want to use, 2.9 -so the \hgext{extdiff} extension lets you define \emph{new} commands 2.10 -that will invoke your diff viewer with exactly the right options. 2.11 - 2.12 -All you need to do is edit your \hgrc, and add a section named 2.13 -\rcsection{extdiff}. Inside this section, you can define multiple 2.14 -commands. Here's how to add a \texttt{kdiff3} command. Once you've 2.15 -defined this, you can type ``\texttt{hg kdiff3}'' and the 2.16 -\hgext{extdiff} extension will run \command{kdiff3} for you. 2.17 +Acordarse de todas las opciones de las órdenes 2.18 +\hgxcmd{extdiff}{extdiff} y el visor de diferencias de su preferencia 2.19 +puede ser dispendioso, y por lo tanto la extensión \hgext{extdiff} le 2.20 +permite definir \emph{nuevas} órdenes que invocarán su visor de 2.21 +diferencias con las opciones exactas. 2.22 + 2.23 +Basta con editar su fichero \hgrc, y añadir una sección llamada 2.24 +\rcsection{extdiff}. Dentro de esta sección puede definir varias 2.25 +órdenes. Mostraremos como añadir la orden \texttt{kdiff3}. Después de 2.26 +definido, puede teclear ``\texttt{hg kdiff3}'' y la extensión a 2.27 +\hgext{extdiff} ejecutará la orden \command{kdiff3}. 2.28 \begin{codesample2} 2.29 [extdiff] 2.30 cmd.kdiff3 = 2.31 \end{codesample2} 2.32 -If you leave the right hand side of the definition empty, as above, 2.33 -the \hgext{extdiff} extension uses the name of the command you defined 2.34 -as the name of the external program to run. But these names don't 2.35 -have to be the same. Here, we define a command named ``\texttt{hg 2.36 - wibble}'', which runs \command{kdiff3}. 2.37 +Si deja vacía la porción derecha de la definición, como en el ejemplo, 2.38 +la extensión \hgext{extdiff} usa el nombre de la orden se definirá 2.39 +como el nombre del programa externo a ejecutar. Pero tales nombres no 2.40 +tienen por qué ser iguales. Definimos ahora la orden llamada 2.41 + ``\texttt{hg wibble}'', que ejecuta \command{kdiff3}. 2.42 \begin{codesample2} 2.43 [extdiff] 2.44 cmd.wibble = kdiff3 2.45 \end{codesample2} 2.46 2.47 -You can also specify the default options that you want to invoke your 2.48 -diff viewing program with. The prefix to use is ``\texttt{opts.}'', 2.49 -followed by the name of the command to which the options apply. This 2.50 -example defines a ``\texttt{hg vimdiff}'' command that runs the 2.51 -\command{vim} editor's \texttt{DirDiff} extension. 2.52 +También puede especificar las opciones predeterminadas con las cuales 2.53 +desea invocar el visor de diferencias. Se usa el prefijo ``\texttt{opts.}'', 2.54 +seguido por el nombre de la orden a la cual se aplican las opciones. 2.55 +En este ejemplos se define la orden ``\texttt{hg vimdiff}'' que 2.56 +ejecuta la extensión \texttt{DirDiff} del editor \command{vim}. 2.57 \begin{codesample2} 2.58 [extdiff] 2.59 cmd.vimdiff = vim 2.60 opts.vimdiff = -f '+next' '+execute "DirDiff" argv(0) argv(1)' 2.61 \end{codesample2} 2.62 2.63 -\section{Cherrypicking changes with the \hgext{transplant} extension} 2.64 +\section{Uso de la extensión \hgext{transplant} para seleccionar} 2.65 \label{sec:hgext:transplant} 2.66 2.67 Need to have a long chat with Brendan about this. 2.68 2.69 -\section{Send changes via email with the \hgext{patchbomb} extension} 2.70 +\section{Enviar cambios vía correo electrónico con la extensión \hgext{patchbomb}} 2.71 \label{sec:hgext:patchbomb} 2.72 2.73 -Many projects have a culture of ``change review'', in which people 2.74 -send their modifications to a mailing list for others to read and 2.75 -comment on before they commit the final version to a shared 2.76 -repository. Some projects have people who act as gatekeepers; they 2.77 -apply changes from other people to a repository to which those others 2.78 -don't have access. 2.79 - 2.80 -Mercurial makes it easy to send changes over email for review or 2.81 -application, via its \hgext{patchbomb} extension. The extension is so 2.82 -namd because changes are formatted as patches, and it's usual to send 2.83 -one changeset per email message. Sending a long series of changes by 2.84 -email is thus much like ``bombing'' the recipient's inbox, hence 2.85 -``patchbomb''. 2.86 +Varios proyectos tienen la cultura de ``revisión de cambios'', en la 2.87 +cual la gente envía sus modificaciones a una lista de correo para que 2.88 +otros las lean y comenten antes de consignar la versión final a un 2.89 +repositorio compartido. Algunos proyectos tienen personas que actúan 2.90 +como cancerberos; ellos aplican los cambios de otras personas a un 2.91 +repositorio para aquellos que no tienen acceso. 2.92 + 2.93 +Mercurial facilita enviar cambios por correo para revisión o 2.94 +aplicación gracias a su extensión \hgext{patchbomb}. La extensión es 2.95 +tan popular porque los cambios se formatean como parches y es usual 2.96 +que se envía un conjunto de cambios por cada correo. Enviar una gran 2.97 +cantidad de cambios por correos se llama por tanto ``bombardear'' el 2.98 +buzón de entrada del destinatario, de ahí su nombre ``bombardeo de 2.99 +parches''. 2.100 2.101 As usual, the basic configuration of the \hgext{patchbomb} extension 2.102 takes just one or two lines in your \hgrc.