hgbook
diff es/hgext.tex @ 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 |
line diff
1.1 --- a/es/hgext.tex Mon Dec 15 08:14:28 2008 -0500 1.2 +++ b/es/hgext.tex Mon Dec 15 23:37:01 2008 -0500 1.3 @@ -292,62 +292,64 @@ 1.4 1.5 \subsection{Definición de alias de comandos} 1.6 1.7 -It can be cumbersome to remember the options to both the 1.8 -\hgxcmd{extdiff}{extdiff} command and the diff viewer you want to use, 1.9 -so the \hgext{extdiff} extension lets you define \emph{new} commands 1.10 -that will invoke your diff viewer with exactly the right options. 1.11 - 1.12 -All you need to do is edit your \hgrc, and add a section named 1.13 -\rcsection{extdiff}. Inside this section, you can define multiple 1.14 -commands. Here's how to add a \texttt{kdiff3} command. Once you've 1.15 -defined this, you can type ``\texttt{hg kdiff3}'' and the 1.16 -\hgext{extdiff} extension will run \command{kdiff3} for you. 1.17 +Acordarse de todas las opciones de las órdenes 1.18 +\hgxcmd{extdiff}{extdiff} y el visor de diferencias de su preferencia 1.19 +puede ser dispendioso, y por lo tanto la extensión \hgext{extdiff} le 1.20 +permite definir \emph{nuevas} órdenes que invocarán su visor de 1.21 +diferencias con las opciones exactas. 1.22 + 1.23 +Basta con editar su fichero \hgrc, y añadir una sección llamada 1.24 +\rcsection{extdiff}. Dentro de esta sección puede definir varias 1.25 +órdenes. Mostraremos como añadir la orden \texttt{kdiff3}. Después de 1.26 +definido, puede teclear ``\texttt{hg kdiff3}'' y la extensión a 1.27 +\hgext{extdiff} ejecutará la orden \command{kdiff3}. 1.28 \begin{codesample2} 1.29 [extdiff] 1.30 cmd.kdiff3 = 1.31 \end{codesample2} 1.32 -If you leave the right hand side of the definition empty, as above, 1.33 -the \hgext{extdiff} extension uses the name of the command you defined 1.34 -as the name of the external program to run. But these names don't 1.35 -have to be the same. Here, we define a command named ``\texttt{hg 1.36 - wibble}'', which runs \command{kdiff3}. 1.37 +Si deja vacía la porción derecha de la definición, como en el ejemplo, 1.38 +la extensión \hgext{extdiff} usa el nombre de la orden se definirá 1.39 +como el nombre del programa externo a ejecutar. Pero tales nombres no 1.40 +tienen por qué ser iguales. Definimos ahora la orden llamada 1.41 + ``\texttt{hg wibble}'', que ejecuta \command{kdiff3}. 1.42 \begin{codesample2} 1.43 [extdiff] 1.44 cmd.wibble = kdiff3 1.45 \end{codesample2} 1.46 1.47 -You can also specify the default options that you want to invoke your 1.48 -diff viewing program with. The prefix to use is ``\texttt{opts.}'', 1.49 -followed by the name of the command to which the options apply. This 1.50 -example defines a ``\texttt{hg vimdiff}'' command that runs the 1.51 -\command{vim} editor's \texttt{DirDiff} extension. 1.52 +También puede especificar las opciones predeterminadas con las cuales 1.53 +desea invocar el visor de diferencias. Se usa el prefijo ``\texttt{opts.}'', 1.54 +seguido por el nombre de la orden a la cual se aplican las opciones. 1.55 +En este ejemplos se define la orden ``\texttt{hg vimdiff}'' que 1.56 +ejecuta la extensión \texttt{DirDiff} del editor \command{vim}. 1.57 \begin{codesample2} 1.58 [extdiff] 1.59 cmd.vimdiff = vim 1.60 opts.vimdiff = -f '+next' '+execute "DirDiff" argv(0) argv(1)' 1.61 \end{codesample2} 1.62 1.63 -\section{Cherrypicking changes with the \hgext{transplant} extension} 1.64 +\section{Uso de la extensión \hgext{transplant} para seleccionar} 1.65 \label{sec:hgext:transplant} 1.66 1.67 Need to have a long chat with Brendan about this. 1.68 1.69 -\section{Send changes via email with the \hgext{patchbomb} extension} 1.70 +\section{Enviar cambios vía correo electrónico con la extensión \hgext{patchbomb}} 1.71 \label{sec:hgext:patchbomb} 1.72 1.73 -Many projects have a culture of ``change review'', in which people 1.74 -send their modifications to a mailing list for others to read and 1.75 -comment on before they commit the final version to a shared 1.76 -repository. Some projects have people who act as gatekeepers; they 1.77 -apply changes from other people to a repository to which those others 1.78 -don't have access. 1.79 - 1.80 -Mercurial makes it easy to send changes over email for review or 1.81 -application, via its \hgext{patchbomb} extension. The extension is so 1.82 -namd because changes are formatted as patches, and it's usual to send 1.83 -one changeset per email message. Sending a long series of changes by 1.84 -email is thus much like ``bombing'' the recipient's inbox, hence 1.85 -``patchbomb''. 1.86 +Varios proyectos tienen la cultura de ``revisión de cambios'', en la 1.87 +cual la gente envía sus modificaciones a una lista de correo para que 1.88 +otros las lean y comenten antes de consignar la versión final a un 1.89 +repositorio compartido. Algunos proyectos tienen personas que actúan 1.90 +como cancerberos; ellos aplican los cambios de otras personas a un 1.91 +repositorio para aquellos que no tienen acceso. 1.92 + 1.93 +Mercurial facilita enviar cambios por correo para revisión o 1.94 +aplicación gracias a su extensión \hgext{patchbomb}. La extensión es 1.95 +tan popular porque los cambios se formatean como parches y es usual 1.96 +que se envía un conjunto de cambios por cada correo. Enviar una gran 1.97 +cantidad de cambios por correos se llama por tanto ``bombardear'' el 1.98 +buzón de entrada del destinatario, de ahí su nombre ``bombardeo de 1.99 +parches''. 1.100 1.101 As usual, the basic configuration of the \hgext{patchbomb} extension 1.102 takes just one or two lines in your \hgrc.