annotate es/cmdref.tex @ 615:9da096de3c52

changed "historia" to "historial". changed "archivo" to "fichero" corrected some typos
author Javier Rojas <jerojasro@devnull.li>
date Sun, 18 Jan 2009 21:37:11 -0500
parents 1b8b19825994
children bbc5db74bd77
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
1 \chapter{Referencia de Órdenes}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
2 \label{cmdref}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
3
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
4 \cmdref{add}{Añade ficheros en la próxima consignación}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
5 \optref{add}{I}{include}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
6 \optref{add}{X}{exclude}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
7 \optref{add}{n}{dry-run}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
8
615
9da096de3c52 changed "historia" to "historial".
Javier Rojas <jerojasro@devnull.li>
parents: 572
diff changeset
9 \cmdref{diff}{imprime los cambios en el historial o el directorio actual}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
10
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
11 Mostrar las diferencias entre revisiones para ficheros especificados o
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
12 directorios, con el formato unificado diff. Si desea ver una
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
13 descripción del formato unificado diff, ver la sección~\ref{sec:mq:patch}.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
14
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
15 De forma predeterminada, esta orden no imprime las diferencias para
615
9da096de3c52 changed "historia" to "historial".
Javier Rojas <jerojasro@devnull.li>
parents: 572
diff changeset
16 los ficheros binarios que Mercurial esté siguiendo. Para controlar
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
17 este comportamiento, vea las opciones \hgopt{diff}{-a} y
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
18 \hgopt{diff}{--git}.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
19
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
20 \subsection{Options}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
21
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
22 \loptref{diff}{nodates}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
23
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
24 Omite la fecha y hora cuando se muestran los encabezados de las
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
25 diferencias.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
26
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
27 \optref{diff}{B}{ignore-blank-lines}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
28
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
29 No imprime los cambios que solamente insertan o eliminan líneas en
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
30 blanco. Una línea que contiene espacios en blanco no se considera
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
31 como una línea en blanco.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
32
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
33 \optref{diff}{I}{include}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
34
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
35 Incluye ficheros y directorios cuyos nombres coinciden con los
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
36 patrones elegidos.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
37
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
38 \optref{diff}{X}{exclude}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
39
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
40 Excluye los ficheros y directorios cuyos nombres coinciden con los
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
41 patrones elegidos.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
42
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
43 \optref{diff}{a}{text}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
44
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
45 Si no especifica esta opción, \hgcmd{diff} no mostrará las diferencias
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
46 de los ficheros que detecte como binarios. Al especificar \hgopt{diff}{-a}
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
47 se forza a \hgcmd{diff} a tratar los ficheros como texto, y generar
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
48 diferencias para todos.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
49
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
50 Esta opción es útil para los ficherso que son ``texto en mayor
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
51 medida'' pero que tienen caracteres NUL. Si lo usa en ficheros que
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
52 contienen muchos datos binarios, la salida será incomprensible.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
53
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
54 \optref{diff}{b}{ignore-space-change}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
55
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
56 No imprime si el único cambio que en la línea es la cantidad de
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
57 espacio en blanco.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
58
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
59 \optref{diff}{g}{git}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
60
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
61 Mostrar diferencias compatibles con \command{git}. XXX reference a format
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
62 description.
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
63
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
64 \optref{diff}{p}{show-function}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
65
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
66 Mostrar el nombre de la función que contiene el código en una porción
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
67 del encabzado usando una heurística simple. Esta funcionalidad se
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
68 habilita de forma predeterminada, así que la opción \hgopt{diff}{-p}
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
69 no tiene efectos a menos que cambie el valor de
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
70 \rcitem{diff}{showfunc} en la configuración, como en el ejemplo
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
71 siguiente.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
72 \interaction{cmdref.diff-p}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
73
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
74 \optref{diff}{r}{rev}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
75
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
76 Especifique una o más revisiones para comparar. La orden \hgcmd{diff}
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
77 acepta hasta dos opciones \hgopt{diff}{-r} para especificar las
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
78 revisiones a comparar.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
79
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
80 \begin{enumerate}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
81 \setcounter{enumi}{0}
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
82 \item Despliega las diferencias entre la revisión padre y del directorio
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
83 de trabajo.
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
84 \item Despliega las diferencias entre el conjunto de cambios
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
85 especificados y el directorio de trabajo.
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
86 \item Despliega las diferencias entre dos conjuntos de cambios
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
87 especificados.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
88 \end{enumerate}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
89
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
90 Puede especificar dos revisiones usando o bien sea las opciones
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
91 \hgopt{diff}{-r} o la notación de rango. Por ejemplo, las dos
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
92 especificaciones de revisiones a continuación son equivalentes:
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
93 \begin{codesample2}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
94 hg diff -r 10 -r 20
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
95 hg diff -r10:20
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
96 \end{codesample2}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
97
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
98 Cuando especifica dos revisiones, esto tiene significado para
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
99 Mercurial. Esto significa que \hgcmdargs{diff}{-r10:20} producirá un
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
100 diff que transformará los ficheros desde los contenidos en la revisión
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
101 10 a los contenidos de la revisión 20, mientras que
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
102 \hgcmdargs{diff}{-r20:10} significa lo opuesto: el diff que
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
103 transformaría los contenidos de los ficheros de la revisión 20 a los
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
104 contenidos de la revisión 10. No puede invertir el orden de esta
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
105 forma si está haciendo un diff frente al directorio de trabajo.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
106
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
107 \optref{diff}{w}{ignore-all-space}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
108
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
109 \cmdref{version}{imprime la información de versión y derechos de reproducción}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
110
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
111 Esta orden despliega la versión de Mercurial que está usando, y su
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
112 nota de derechos de reproducción. Hay cuatro clases de cadenas de
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
113 versión posibles:
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
114 \begin{itemize}
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
115 \item La cadena ``\texttt{unknown}''. Esta versión de Mercurial no fue
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
116 construida en un repositorio de Mercurial, y no puede determinar su
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
117 propia versión.
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
118 \item Una cadena numérica corta, tal como ``\texttt{1.1}''. Esta es
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
119 una construcción de una versión de Mercurial que se identifica con
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
120 una etiqueta específica en el repositorio en el cual fue
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
121 armada(Esto no significa necesariamente que está ejecutando una
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
122 versión oficial; alguien pudo haber añadido tal etiqueta a cualquier
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
123 versión del repositorio en el cual armaron Mercurial).
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
124 \item Una cadena hexadecimal, tal como ``\texttt{875489e31abe}''.
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
125 Esta es una construcción de una revisión dada de Mercurial.
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
126 \item Una cadena hexadecimal seguida por una fecha, tal como
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
127 ``\texttt{875489e31abe+20070205}''. Esta construcción de la
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
128 revisión de Mercurial fue la construcción de un repositorio que tuvo
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
129 cambios locales que no han sido consignados.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
130 \end{itemize}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
131
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
132 \subsection{Consejos y trucos}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
133
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
134 \subsubsection{¿Por qué difieren los resultados de \hgcmd{diff} y
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
135 \hgcmd{status}?}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
136 \label{cmdref:diff-vs-status}
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
137
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
138 Cuando ejecuta la orden \hgcmd{status}, verá una lista de ficheros
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
139 para los cuales Mercurial almacenará cambios la próxima vez que
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
140 consigne. Si ejecuta la orden \hgcmd{diff}, verá que imprime
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
141 diferencias solamente para un \emph{subconjunto} de los ficheros que
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
142 \hgcmd{status} liste. Hay dos posibles razones para este comportamiento:
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
143
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
144 La primera es que \hgcmd{status} imprime cierta clase de
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
145 modificaciones que \hgcmd{diff} no despliega normalmente. La orden
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
146 \hgcmd{diff} usualmente despliega diferencias unificadas, las cuales
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
147 no tienen la habilidad de representar algunos cambios que Mercurial
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
148 puede seguir. Lo más notable es que las diferencias tradicionales no
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
149 pueden representar un cambio acerca de la ejecutabilidad de un
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
150 fichero, pero Mercurial sí almacena esta información.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
151
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
152 Si usa la opción \hgopt{diff}{--git} de \hgcmd{diff}, mostrará
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
153 diferencias compatibles con \command{git} que \emph{pueden} desplegar
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
154 esta información adicional.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
155
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
156 La segunda razón posible para que \hgcmd{diff} esté imprimiendo
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
157 diferencias para un subconjunto de ficheros de lo que muestra
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
158 \hgcmd{status} es que si usted le invoca sin argumento alguno,
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
159 \hgcmd{diff} imprime diferencias frente al primer padre del directorio
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
160 de trabajo. Si ha ejecutado \hgcmd{merge} para fusionar dos conjuntos
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
161 de cambios, pero no ha consignado aún los resultados de la fusión, su
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
162 directorio de trabajo tiene dos padres(use \hgcmd{parents} para
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
163 verlos). Mientras que \hgcmd{status} imprime modificaciones relativas
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
164 a \emph{ambos} padres después de una fusión que no se ha consignado,
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
165 \hgcmd{diff} opera aún relativo solamente al primer padre. Puede
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
166 lograr que imprima las diferencias relativas al segundo padre
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
167 especificando tal padre con la opción \hgopt{diff}{-r}. No hay forma
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
168 de hacer que imprima las diferencias relativas a los dos padres.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
169
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
170 \subsubsection{Generar diferencias seguras en binarios}
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
171
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
172 Si usa la opción \hgopt{diff}{-a} para forzar que Mercurial imprima
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
173 las diferencias de los ficheros que so o bien ``casi completamente
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
174 texto'' o contienen muchos datos binarios, tales diferencias no pueden
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
175 aplicarse subsecuentemente a la orden \hgcmd{import} de Mercurial o a
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
176 la orden \command{patch} del sistema.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
177
572
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
178 Si desea generar una diferencia de un fichero binario que es seguro
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
179 para usarlo como entrada a la orden \hgcmd{import}, use la opción
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
180 \hgcmd{diff}{--git} cuando genere el parche. La orden \command{patch}
1b8b19825994 finished translation of assigned chapters to ikks
Igor Támara <igor@tamarapatino.org>
parents: 501
diff changeset
181 del sistema no puede tratar con parches binarios.
501
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
182
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
183 %%% Local Variables:
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
184 %%% mode: latex
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
185 %%% TeX-master: "00book"
b05e35d641e4 Copying the files from en to es and taking intro chapter
Igor TAmara <igor@tamarapatino.org>
parents: 432
diff changeset
186 %%% End: