hgbook
changeset 453:3cb3f9b418ea
Translated some paragraphs on exts
author | Igor TAmara <igor@tamarapatino.org> |
---|---|
date | Mon Dec 15 08:14:28 2008 -0500 (2008-12-15) |
parents | 5a0401ba9faa |
children | 6d4465f04bb7 |
files | es/Leame.1st es/hgext.tex |
line diff
1.1 --- a/es/Leame.1st Sun Dec 14 21:28:52 2008 -0500 1.2 +++ b/es/Leame.1st Mon Dec 15 08:14:28 2008 -0500 1.3 @@ -107,7 +107,7 @@ 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 || 50% || 13/12/2008 || || 1.8 +|| hgext.tex || Igor Támara || 63% || 13/12/2008 || || 1.9 || template.tex || || || || || 1.10 || mq-collab.tex || || || || || 1.11 || mq-ref.tex || || || || ||
2.1 --- a/es/hgext.tex Sun Dec 14 21:28:52 2008 -0500 2.2 +++ b/es/hgext.tex Mon Dec 15 08:14:28 2008 -0500 2.3 @@ -236,59 +236,61 @@ 2.4 \hgcmd{diff}, puesto que la salida de \command{diff} varía de un 2.5 sistema a otro, incluso pasando las mismas opciones. 2.6 2.7 -As the ``\texttt{making snapshot}'' lines of output above imply, the 2.8 -\hgxcmd{extdiff}{extdiff} command works by creating two snapshots of 2.9 -your source tree. The first snapshot is of the source revision; the 2.10 -second, of the target revision or working directory. The 2.11 -\hgxcmd{extdiff}{extdiff} command generates these snapshots in a 2.12 -temporary directory, passes the name of each directory to an external 2.13 -diff viewer, then deletes the temporary directory. For efficiency, it 2.14 -only snapshots the directories and files that have changed between the 2.15 -two revisions. 2.16 - 2.17 -Snapshot directory names have the same base name as your repository. 2.18 -If your repository path is \dirname{/quux/bar/foo}, then \dirname{foo} 2.19 -will be the name of each snapshot directory. Each snapshot directory 2.20 -name has its changeset ID appended, if appropriate. If a snapshot is 2.21 -of revision \texttt{a631aca1083f}, the directory will be named 2.22 -\dirname{foo.a631aca1083f}. A snapshot of the working directory won't 2.23 -have a changeset ID appended, so it would just be \dirname{foo} in 2.24 -this example. To see what this looks like in practice, look again at 2.25 -the \hgxcmd{extdiff}{extdiff} example above. Notice that the diff has 2.26 -the snapshot directory names embedded in its header. 2.27 - 2.28 -The \hgxcmd{extdiff}{extdiff} command accepts two important options. 2.29 -The \hgxopt{extdiff}{extdiff}{-p} option lets you choose a program to 2.30 -view differences with, instead of \command{diff}. With the 2.31 -\hgxopt{extdiff}{extdiff}{-o} option, you can change the options that 2.32 -\hgxcmd{extdiff}{extdiff} passes to the program (by default, these 2.33 -options are ``\texttt{-Npru}'', which only make sense if you're 2.34 -running \command{diff}). In other respects, the 2.35 -\hgxcmd{extdiff}{extdiff} command acts similarly to the built-in 2.36 -\hgcmd{diff} command: you use the same option names, syntax, and 2.37 -arguments to specify the revisions you want, the files you want, and 2.38 -so on. 2.39 - 2.40 -As an example, here's how to run the normal system \command{diff} 2.41 -command, getting it to generate context diffs (using the 2.42 -\cmdopt{diff}{-c} option) instead of unified diffs, and five lines of 2.43 -context instead of the default three (passing \texttt{5} as the 2.44 -argument to the \cmdopt{diff}{-C} option). 2.45 +Como lo indican las líneas``\texttt{making snapshot}'', la orden 2.46 +\hgxcmd{extdiff}{extdiff} funciona creando dos instantáneas de su 2.47 +árbol de fuentes. La primera instantánea es la revisión fuente; la 2.48 +segunda es la revisión objetivo del directorio de trabajo. La orden 2.49 +\hgxcmd{extdiff}{extdiff} genera estas instantáneas en un directorio 2.50 +temporal, pasa el nombre de cada directorio a un visor de diffs 2.51 +temporal y borra los directorios temporales. Por cuestiones de 2.52 +eficiencia solamente genera instantáneas de los directorios y ficheros 2.53 +que han cambiado entre dos revisiones. 2.54 + 2.55 +Los nombres de los directorios de instantáneas tienen los mismos 2.56 +nombres base de su repositorio. Si su repositorio tiene por ruta 2.57 +\dirname{/quux/bar/foo}, \dirname{foo} será el nombre de cada 2.58 +instantánea de directorio. Cada instantánea de directorio tiene sus 2.59 +identificadores de conjuntos de cambios al final del nombre en caso de 2.60 +que sea apropiado. Si una instantánea viene de la revisión 2.61 +\texttt{a631aca1083f}, el directorio se llamará 2.62 +\dirname{foo.a631aca1083f}. Una instantánea del directorio de trabajo 2.63 +no tendrá el identificador del conjunto de cambios, y por lo tanto 2.64 +será solamente \dirname{foo} en este ejemplo. Para ver cómo luce en 2.65 +la práctica, veamos de nuevo el ejemplo \hgxcmd{extdiff}{extdiff} 2.66 +antes mencionado. Tenga en cuenta que los diffs tienen los nombres de 2.67 +las instantáneas de directorio dentro de su encabezado. 2.68 + 2.69 +La orden \hgxcmd{extdiff}{extdiff} acepta dos opciones importantes. 2.70 +La opción \hgxopt{extdiff}{extdiff}{-p} le permite elegir un programa 2.71 +para ver las diferencias, en lugar de \command{diff}. Con la opción 2.72 +\hgxopt{extdiff}{extdiff}{-o} puede cambiar las opciones que 2.73 +\hgxcmd{extdiff}{extdiff} pasa a tal programa(de forma predeterminada 2.74 +las opciones son``\texttt{-Npru}'', que tienen sentido únicamente si 2.75 +está usando \command{diff}). En otros aspectos, la orden 2.76 +\hgxcmd{extdiff}{extdiff} actúa de forma similar a como lo hace la 2.77 +orden \hgcmd{diff} de Mercurial: usted usa los mismos nombres de 2.78 +opciones, sintaxis y argumentos para especificar las revisiones y los 2.79 +ficheros que quiere, y así sucesivamente. 2.80 + 2.81 +Por ejemplo, para ejecutar la orden usual del sistema \command{diff}, 2.82 +para lograr que se generen diferencias de contexto (con la opción 2.83 +\cmdopt{diff}{-c}) en lugar de diferencias unificadas, y cinco líneas 2.84 +de contexto en lugar de las tres predeterminadas(pasando \texttt{5} 2.85 +como argumento a la opción \cmdopt{diff}{-C}). 2.86 \interaction{extdiff.extdiff-ctx} 2.87 2.88 -Launching a visual diff tool is just as easy. Here's how to launch 2.89 -the \command{kdiff3} viewer. 2.90 +Es sencillo lanzar unas herramienta usual de diferencias. Para lanzar 2.91 +el visor \command{kdiff3}: 2.92 \begin{codesample2} 2.93 hg extdiff -p kdiff3 -o '' 2.94 \end{codesample2} 2.95 2.96 -If your diff viewing command can't deal with directories, you can 2.97 -easily work around this with a little scripting. For an example of 2.98 -such scripting in action with the \hgext{mq} extension and the 2.99 -\command{interdiff} command, see 2.100 -section~\ref{mq-collab:tips:interdiff}. 2.101 - 2.102 -\subsection{Defining command aliases} 2.103 +Si su orden para visualizar diferencias no puede tratar con 2.104 +directorios, puede usar un poco de scripting para lograrlo. Un 2.105 +ejemplo de un script con la extensión \hgext{mq} junto con la orden 2.106 +\command{interdiff} está en la sección~\ref{mq-collab:tips:interdiff}. 2.107 + 2.108 +\subsection{Definición de alias de comandos} 2.109 2.110 It can be cumbersome to remember the options to both the 2.111 \hgxcmd{extdiff}{extdiff} command and the diff viewer you want to use,