hgbook

diff es/hook.tex @ 479:5236357a00b2

finished hook.tex
author Javier Rojas <jerojasro@devnull.li>
date Sun Jan 04 21:51:51 2009 -0500 (2009-01-04)
parents 1f9ef8b3ab79
children 527b274d237c
line diff
     1.1 --- a/es/hook.tex	Fri Jan 02 22:30:00 2009 -0500
     1.2 +++ b/es/hook.tex	Sun Jan 04 21:51:51 2009 -0500
     1.3 @@ -1267,7 +1267,7 @@
     1.4  grupo de conjuntos de cambios, mientras que otras es más útil correrlo
     1.5  por cada conjunto de cambios.
     1.6  
     1.7 -Parámetros para este gancho.
     1.8 +Parámetros para este gancho:
     1.9  \begin{itemize}
    1.10  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del conjunto
    1.11    de cambios recién añadido.
    1.12 @@ -1309,237 +1309,259 @@
    1.13  
    1.14  Vea también: \hook{preoutgoing} (sección~\ref{sec:hook:preoutgoing})
    1.15  
    1.16 -\subsection{\hook{prechangegroup}---before starting to add remote changesets}
    1.17 +\subsection{\hook{prechangegroup}---antes de empezar la adición de
    1.18 +conjuntos de cambios remotos}
    1.19  \label{sec:hook:prechangegroup}
    1.20  
    1.21 -This controlling hook is run before Mercurial begins to add a group of
    1.22 -changesets from another repository.
    1.23 -
    1.24 -This hook does not have any information about the changesets to be
    1.25 -added, because it is run before transmission of those changesets is
    1.26 -allowed to begin.  If this hook fails, the changesets will not be
    1.27 -transmitted.
    1.28 -
    1.29 -One use for this hook is to prevent external changes from being added
    1.30 -to a repository.  For example, you could use this to ``freeze'' a
    1.31 -server-hosted branch temporarily or permanently so that users cannot
    1.32 -push to it, while still allowing a local administrator to modify the
    1.33 -repository.
    1.34 -
    1.35 -Parameters to this hook:
    1.36 -\begin{itemize}
    1.37 -\item[\texttt{source}] A string.  The source of these changes.  See
    1.38 -  section~\ref{sec:hook:sources} for details.
    1.39 -\item[\texttt{url}] A URL.  The location of the remote repository, if
    1.40 -  known.  See section~\ref{sec:hook:url} for more information.
    1.41 -\end{itemize}
    1.42 -
    1.43 -See also: \hook{changegroup} (section~\ref{sec:hook:changegroup}),
    1.44 -\hook{incoming} (section~\ref{sec:hook:incoming}), ,
    1.45 -\hook{pretxnchangegroup} (section~\ref{sec:hook:pretxnchangegroup})
    1.46 -
    1.47 -\subsection{\hook{precommit}---before starting to commit a changeset}
    1.48 +Este gancho de control es ejecutado antes de que Mercurial empiece a
    1.49 +añadir un grupo de conjuntos de cambios de otro repositorio.
    1.50 +
    1.51 +Este gancho no tiene ninguna información acerca de los conjuntos de
    1.52 +cambios que van a ser añadidos, porque es ejecutado antes de que se
    1.53 +permita que empiece la transmisión de dichos conjuntos de cambios. Si
    1.54 +este gancho falla, los conjuntos de cambios no serán transmitidos.
    1.55 +
    1.56 +Un uso para este gancho es prevenir que se añadan cambios externos a un
    1.57 +repositorio. Por ejemplo, usted podría usarlo para ``congelar''
    1.58 +temporal o permanentemente una rama ubicada en un servidor para que
    1.59 +los usuarios no puedan empujar cambios a ella, y permitiendo al mismo
    1.60 +tiempo modificaciones al repositorio por parte de un administrador
    1.61 +local.
    1.62 +
    1.63 +Parámetros para este gancho:
    1.64 +\begin{itemize}
    1.65 +\item[\texttt{source}] Una cadena. La fuente de estos cambios. Vea la
    1.66 +  sección~\ref{sec:hook:sources} para más detalles.
    1.67 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
    1.68 +  es conocida. Vea la sección~\ref{sec:hook:url} para más información.
    1.69 +\end{itemize}
    1.70 +
    1.71 +Vea también: \hook{changegroup} (sección~\ref{sec:hook:changegroup}),
    1.72 +\hook{incoming} (sección~\ref{sec:hook:incoming}), ,
    1.73 +\hook{pretxnchangegroup} (sección~\ref{sec:hook:pretxnchangegroup})
    1.74 +
    1.75 +\subsection{\hook{precommit}---antes de iniciar la consignación de un
    1.76 +conjunto de cambios}
    1.77  \label{sec:hook:precommit}
    1.78  
    1.79 -This hook is run before Mercurial begins to commit a new changeset.
    1.80 -It is run before Mercurial has any of the metadata for the commit,
    1.81 -such as the files to be committed, the commit message, or the commit
    1.82 -date.
    1.83 -
    1.84 -One use for this hook is to disable the ability to commit new
    1.85 -changesets, while still allowing incoming changesets.  Another is to
    1.86 -run a build or test, and only allow the commit to begin if the build
    1.87 -or test succeeds.
    1.88 -
    1.89 -Parameters to this hook:
    1.90 -\begin{itemize}
    1.91 -\item[\texttt{parent1}] A changeset ID.  The changeset ID of the first
    1.92 -  parent of the working directory.
    1.93 -\item[\texttt{parent2}] A changeset ID.  The changeset ID of the second
    1.94 -  parent of the working directory.
    1.95 -\end{itemize}
    1.96 -If the commit proceeds, the parents of the working directory will
    1.97 -become the parents of the new changeset.
    1.98 -
    1.99 -See also: \hook{commit} (section~\ref{sec:hook:commit}),
   1.100 -\hook{pretxncommit} (section~\ref{sec:hook:pretxncommit})
   1.101 -
   1.102 -\subsection{\hook{preoutgoing}---before starting to propagate changesets}
   1.103 +Este gancho es ejecutado antes de que Mercurial inicie la consignación
   1.104 +de un nuevo conjunto de cambios. Es ejecutado antes de que Mercurial
   1.105 +tenga cualquier de los metadatos para la consignación, como los
   1.106 +ficheros a ser consignados, el mensaje de consignación, o la fecha de
   1.107 +consignación.
   1.108 +
   1.109 +Un uso para este gancho es deshabilitar la capacidad de consignar
   1.110 +nuevos conjuntos de cambios, pero permitiendo conjuntos de cambios
   1.111 +entrantes. Otro es ejecutar un proceso de ensamble/compilación o
   1.112 +prueba, y permitir la consignación sólo si el ensamble/compilación o
   1.113 +prueba tiene éxito.
   1.114 +
   1.115 +Parámetros para este gancho:
   1.116 +\begin{itemize}
   1.117 +  \item[\texttt{parent1}] Un ID de conjunto de cambios. El ID de
   1.118 +  conjunto de cambios del primer padre del directorio de trabajo.
   1.119 +\item[\texttt{parent2}] Un ID de conjunto de cambios. El ID de
   1.120 +  conjunto de cambios del segundo padre del directorio de trabajo.
   1.121 +\end{itemize}
   1.122 +Si la consignación continúa, los padres del directorio de trabajo se
   1.123 +convertirán en los padres del nuevo conjunto de cambios.
   1.124 +
   1.125 +Vea también: \hook{commit} (sección~\ref{sec:hook:commit}),
   1.126 +\hook{pretxncommit} (sección~\ref{sec:hook:pretxncommit})
   1.127 +
   1.128 +\subsection{\hook{preoutgoing}---antes de empezar la propagación de
   1.129 +conjuntos de cambios}
   1.130  \label{sec:hook:preoutgoing}
   1.131  
   1.132 -This hook is invoked before Mercurial knows the identities of the
   1.133 -changesets to be transmitted.
   1.134 -
   1.135 -One use for this hook is to prevent changes from being transmitted to
   1.136 -another repository.
   1.137 -
   1.138 -Parameters to this hook:
   1.139 -\begin{itemize}
   1.140 -\item[\texttt{source}] A string.  The source of the operation that is
   1.141 -  attempting to obtain changes from this repository (see
   1.142 -  section~\ref{sec:hook:sources}).  See the documentation for the
   1.143 -  \texttt{source} parameter to the \hook{outgoing} hook, in
   1.144 -  section~\ref{sec:hook:outgoing}, for possible values of this
   1.145 -  parameter.
   1.146 -\item[\texttt{url}] A URL.  The location of the remote repository, if
   1.147 -  known.  See section~\ref{sec:hook:url} for more information.
   1.148 -\end{itemize}
   1.149 -
   1.150 -See also: \hook{outgoing} (section~\ref{sec:hook:outgoing})
   1.151 -
   1.152 -\subsection{\hook{pretag}---before tagging a changeset}
   1.153 +Este gancho es ejecutado antes de que Mercurial conozca las
   1.154 +identidades de los conjuntos de cambios que deben ser transmitidos.
   1.155 +
   1.156 +Un uso para este gancho es evitar que los cambios sean transmitidos a
   1.157 +otro repositorio.
   1.158 +
   1.159 +Parámetros para este gancho:
   1.160 +\begin{itemize}
   1.161 +  \item[\texttt{source}] Una cadena. La fuente la operación que está
   1.162 +    tratando de obtener cambios de éste repositorio (vea
   1.163 +    la sección~\ref{sec:hook:sources}).  Revise la documentación para
   1.164 +    el parámetro \texttt{source} del gancho \hook{outgoing}, en la
   1.165 +    sección~\ref{sec:hook:outgoing}, para ver los posibles valores de
   1.166 +    este parámetro.
   1.167 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
   1.168 +    es conocida. Vea la sección~\ref{sec:hook:url} para más información.
   1.169 +\end{itemize}
   1.170 +
   1.171 +Vea también: \hook{outgoing} (sección~\ref{sec:hook:outgoing})
   1.172 +
   1.173 +\subsection{\hook{pretag}---antes de etiquetar un conjunto de cambios}
   1.174  \label{sec:hook:pretag}
   1.175  
   1.176 -This controlling hook is run before a tag is created.  If the hook
   1.177 -succeeds, creation of the tag proceeds.  If the hook fails, the tag is
   1.178 -not created.
   1.179 -
   1.180 -Parameters to this hook:
   1.181 -\begin{itemize}
   1.182 -\item[\texttt{local}] A boolean.  Whether the tag is local to this
   1.183 -  repository instance (i.e.~stored in \sfilename{.hg/localtags}) or
   1.184 -  managed by Mercurial (stored in \sfilename{.hgtags}).
   1.185 -\item[\texttt{node}] A changeset ID.  The ID of the changeset to be tagged.
   1.186 -\item[\texttt{tag}] A string.  The name of the tag to be created.
   1.187 -\end{itemize}
   1.188 -
   1.189 -If the tag to be created is revision-controlled, the \hook{precommit}
   1.190 -and \hook{pretxncommit} hooks (sections~\ref{sec:hook:commit}
   1.191 -and~\ref{sec:hook:pretxncommit}) will also be run.
   1.192 -
   1.193 -See also: \hook{tag} (section~\ref{sec:hook:tag})
   1.194 -
   1.195 -\subsection{\hook{pretxnchangegroup}---before completing addition of
   1.196 -  remote changesets}
   1.197 +Este gancho de control es ejecutado antes de la creación de una
   1.198 +etiqueta. Si el gancho termina exitosamente, la creación de la
   1.199 +etiqueta continúa. Si el gancho falla, no se crea la etiqueta.
   1.200 +
   1.201 +Parámetros para este gancho:
   1.202 +\begin{itemize}
   1.203 +\item[\texttt{local}] Un booleano. Indica si la etiqueta es local a
   1.204 +  ésta instancia del repositorio (p.e.~almacenado en
   1.205 +  \sfilename{.hg/localtags}) o administrado por Mercurial (almacenado
   1.206 +  en \sfilename{.hgtags}).
   1.207 +\item[\texttt{node}] Un ID de conjunto de cambios. El ID del conjunto
   1.208 +  de cambios a etiquetar.
   1.209 +\item[\texttt{tag}] Una cadena. El nombre de la etiqueta por crear.
   1.210 +\end{itemize}
   1.211 +
   1.212 +Si la etiqueta que se va a crear se encuentra bajo control de
   1.213 +revisiones, los ganchos \hook{precommit} y \hook{pretxncommit}
   1.214 +(secciones~\ref{sec:hook:commit} y~\ref{sec:hook:pretxncommit})
   1.215 +también serán ejecutados.
   1.216 +
   1.217 +Vea también: \hook{tag} (sección~\ref{sec:hook:tag})
   1.218 +
   1.219 +\subsection{\hook{pretxnchangegroup}---antes de completar la adición
   1.220 +de conjuntos de cambios remotos}
   1.221  \label{sec:hook:pretxnchangegroup}
   1.222  
   1.223 -This controlling hook is run before a transaction---that manages the
   1.224 -addition of a group of new changesets from outside the
   1.225 -repository---completes.  If the hook succeeds, the transaction
   1.226 -completes, and all of the changesets become permanent within this
   1.227 -repository.  If the hook fails, the transaction is rolled back, and
   1.228 -the data for the changesets is erased.
   1.229 -
   1.230 -This hook can access the metadata associated with the almost-added
   1.231 -changesets, but it should not do anything permanent with this data.
   1.232 -It must also not modify the working directory.
   1.233 -
   1.234 -While this hook is running, if other Mercurial processes access this
   1.235 -repository, they will be able to see the almost-added changesets as if
   1.236 -they are permanent.  This may lead to race conditions if you do not
   1.237 -take steps to avoid them.
   1.238 -
   1.239 -This hook can be used to automatically vet a group of changesets.  If
   1.240 -the hook fails, all of the changesets are ``rejected'' when the
   1.241 -transaction rolls back.
   1.242 -
   1.243 -Parameters to this hook:
   1.244 -\begin{itemize}
   1.245 -\item[\texttt{node}] A changeset ID.  The changeset ID of the first
   1.246 -  changeset in the group that was added.  All changesets between this
   1.247 -  and \index{tags!\texttt{tip}}\texttt{tip}, inclusive, were added by
   1.248 -  a single \hgcmd{pull}, \hgcmd{push} or \hgcmd{unbundle}.
   1.249 -\item[\texttt{source}] A string.  The source of these changes.  See
   1.250 -  section~\ref{sec:hook:sources} for details.
   1.251 -\item[\texttt{url}] A URL.  The location of the remote repository, if
   1.252 -  known.  See section~\ref{sec:hook:url} for more information.
   1.253 -\end{itemize}
   1.254 -
   1.255 -See also: \hook{changegroup} (section~\ref{sec:hook:changegroup}),
   1.256 -\hook{incoming} (section~\ref{sec:hook:incoming}),
   1.257 -\hook{prechangegroup} (section~\ref{sec:hook:prechangegroup})
   1.258 -
   1.259 -\subsection{\hook{pretxncommit}---before completing commit of new changeset}
   1.260 +Este gancho de control es ejecutado antes de una transacción---la que
   1.261 +maneja la adición de un grupo de conjuntos de cambios nuevos desde
   1.262 +fuera del repositorio---se complete.  Si el gancho tiene éxito, la
   1.263 +transacción se completa, y todos los conjuntos de cambios se vuelven
   1.264 +permanentes dentro de este repositorio. Si el gancho falla, la
   1.265 +transacción es deshecha, y los datos para los conjuntos de cambios son
   1.266 +eliminados.
   1.267 +
   1.268 +Este gancho puede acceder a los metadatos asociados con los conjuntos
   1.269 +de cambios casi añadidos, pero no debe hacer nada permanente con estos
   1.270 +datos. Tampoco debe modificar el directorio de trabajo.
   1.271 +
   1.272 +Mientras este gancho está corriendo, si otro proceso Mercurial accesa
   1.273 +el repositorio, podrá ver los conjuntos de cambios casi añadidos como
   1.274 +si fueran permanentes. Esto puede llevar a condiciones de carrera si
   1.275 +usted no toma precauciones para evitarlas.
   1.276 +
   1.277 +Este gancho puede ser usado para examinar automáticamente un grupo de
   1.278 +conjuntos de cambios. Si el gancho falla, todos los conjuntos de
   1.279 +cambios son ``rechazados'' cuando la transacción se deshace.
   1.280 +
   1.281 +Parámetros para este gancho:
   1.282 +\begin{itemize}
   1.283 +  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del primer
   1.284 +  conjunto de cambios que fue añadido en el grupo. Todos los
   1.285 +  conjuntos de cambios entre éste y el
   1.286 +  \index{tags!\texttt{tip}}\texttt{tip}, inclusive, fueron añadidos
   1.287 +  por un único \hgcmd{pull}, \hgcmd{push} o \hgcmd{unbundle}.
   1.288 +\item[\texttt{source}] Una cadena. La fuente de estos cambios. Vea la
   1.289 +  sección~\ref{sec:hook:sources} para más detalles.
   1.290 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
   1.291 +  es conocida. Vea la sección~\ref{sec:hook:url} para más información.
   1.292 +\end{itemize}
   1.293 +
   1.294 +Vea también: \hook{changegroup} (sección~\ref{sec:hook:changegroup}),
   1.295 +\hook{incoming} (sección~\ref{sec:hook:incoming}),
   1.296 +\hook{prechangegroup} (sección~\ref{sec:hook:prechangegroup})
   1.297 +
   1.298 +\subsection{\hook{pretxncommit}---antes de completar la consignación
   1.299 +de un nuevo conjunto de cambios}
   1.300  \label{sec:hook:pretxncommit}
   1.301  
   1.302 -This controlling hook is run before a transaction---that manages a new
   1.303 -commit---completes.  If the hook succeeds, the transaction completes
   1.304 -and the changeset becomes permanent within this repository.  If the
   1.305 -hook fails, the transaction is rolled back, and the commit data is
   1.306 -erased.
   1.307 -
   1.308 -This hook can access the metadata associated with the almost-new
   1.309 -changeset, but it should not do anything permanent with this data.  It
   1.310 -must also not modify the working directory.
   1.311 -
   1.312 -While this hook is running, if other Mercurial processes access this
   1.313 -repository, they will be able to see the almost-new changeset as if it
   1.314 -is permanent.  This may lead to race conditions if you do not take
   1.315 -steps to avoid them.
   1.316 -
   1.317 -Parameters to this hook:
   1.318 -\begin{itemize}
   1.319 -\item[\texttt{node}] A changeset ID.  The changeset ID of the newly
   1.320 -  committed changeset.
   1.321 -\item[\texttt{parent1}] A changeset ID.  The changeset ID of the first
   1.322 -  parent of the newly committed changeset.
   1.323 -\item[\texttt{parent2}] A changeset ID.  The changeset ID of the second
   1.324 -  parent of the newly committed changeset.
   1.325 -\end{itemize}
   1.326 -
   1.327 -See also: \hook{precommit} (section~\ref{sec:hook:precommit})
   1.328 -
   1.329 -\subsection{\hook{preupdate}---before updating or merging working directory}
   1.330 +Este gancho de control es ejecutado antes de que una transacción---que
   1.331 +maneja una nueva consignación---se complete. Si el gancho tiene éxito,
   1.332 +la transacción se completa y el conjunto de cambios se hace permanente
   1.333 +dentro de éste repositorio. Si el gancho falla, la transacción es
   1.334 +deshecha, y los datos de consignación son borrados.
   1.335 +
   1.336 +Este gancho tiene acceso a los metadatos asociados con el
   1.337 +prácticamente nuevo conjunto de cambios, pero no debería hacer nada
   1.338 +permanente con estos datos. Tampoco debe modificar el directorio de
   1.339 +trabajo.
   1.340 +
   1.341 +Mientras este gancho está corriendo, si otro proceso Mercurial accesa
   1.342 +éste repositorio, podrá ver el prácticamente nuevo conjunto de cambios
   1.343 +como si fuera permanente. Esto puede llevar a condiciones de carrera si
   1.344 +usted no toma precauciones para evitarlas.
   1.345 +
   1.346 +Parámetros para este gancho:
   1.347 +\begin{itemize}
   1.348 +  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del
   1.349 +    conjunto de cambios recién consignado.
   1.350 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID de
   1.351 +  conjunto de cambios del primer padre del conjunto de cambios que
   1.352 +  acaba de ser consignado.
   1.353 +\item[\texttt{parent2}] Un ID de conjunto de cambios. El ID de
   1.354 +  conjunto de cambios del segundo padre del conjunto de cambios que
   1.355 +  acaba de ser consignado.
   1.356 +\end{itemize}
   1.357 +
   1.358 +Vea también: \hook{precommit} (sección~\ref{sec:hook:precommit})
   1.359 +
   1.360 +\subsection{\hook{preupdate}---antes de actualizar o fusionar el
   1.361 +directorio de trabajo}
   1.362  \label{sec:hook:preupdate}
   1.363  
   1.364 -This controlling hook is run before an update or merge of the working
   1.365 -directory begins.  It is run only if Mercurial's normal pre-update
   1.366 -checks determine that the update or merge can proceed.  If the hook
   1.367 -succeeds, the update or merge may proceed; if it fails, the update or
   1.368 -merge does not start.
   1.369 -
   1.370 -Parameters to this hook:
   1.371 -\begin{itemize}
   1.372 -\item[\texttt{parent1}] A changeset ID.  The ID of the parent that the
   1.373 -  working directory is to be updated to.  If the working directory is
   1.374 -  being merged, it will not change this parent.
   1.375 -\item[\texttt{parent2}] A changeset ID.  Only set if the working
   1.376 -  directory is being merged.  The ID of the revision that the working
   1.377 -  directory is being merged with.
   1.378 -\end{itemize}
   1.379 -
   1.380 -See also: \hook{update} (section~\ref{sec:hook:update})
   1.381 -
   1.382 -\subsection{\hook{tag}---after tagging a changeset}
   1.383 +Este gancho de control es ejecutado antes de actualizar o fusionar el
   1.384 +directorio de trabajo. Es ejecutado sólo si las revisiones usuales de
   1.385 +Mercurial antes de las actualizaciones determinan que la actualización
   1.386 +o fusión pueden proceder. Si el gancho termina exitosamente, la
   1.387 +actualización o fusión pueden proceder.; si falla, la actualización o
   1.388 +fusión no empiezan.
   1.389 +
   1.390 +Parámetros para este gancho:
   1.391 +\begin{itemize}
   1.392 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID del
   1.393 +  padre al que el directorio de trabajo será actualizado. Si se está
   1.394 +  fusionando el directorio de trabajo, no cambiará este padre.
   1.395 +\item[\texttt{parent2}] Un ID de conjunto de cambios. Sólo está
   1.396 +  definido si se está fusionando el directorio de trabajo. El ID de la
   1.397 +  revisión con la cual está siendo fusionado el directorio de trabajo.
   1.398 +\end{itemize}
   1.399 +
   1.400 +Vea también: \hook{update} (sección~\ref{sec:hook:update})
   1.401 +
   1.402 +\subsection{\hook{tag}---luego de etiquetar un conjunto de cambios}
   1.403  \label{sec:hook:tag}
   1.404  
   1.405 -This hook is run after a tag has been created.
   1.406 -
   1.407 -Parameters to this hook:
   1.408 -\begin{itemize}
   1.409 -\item[\texttt{local}] A boolean.  Whether the new tag is local to this
   1.410 -  repository instance (i.e.~stored in \sfilename{.hg/localtags}) or
   1.411 -  managed by Mercurial (stored in \sfilename{.hgtags}).
   1.412 -\item[\texttt{node}] A changeset ID.  The ID of the changeset that was
   1.413 -  tagged.
   1.414 -\item[\texttt{tag}] A string.  The name of the tag that was created.
   1.415 -\end{itemize}
   1.416 -
   1.417 -If the created tag is revision-controlled, the \hook{commit} hook
   1.418 -(section~\ref{sec:hook:commit}) is run before this hook.
   1.419 -
   1.420 -See also: \hook{pretag} (section~\ref{sec:hook:pretag})
   1.421 -
   1.422 -\subsection{\hook{update}---after updating or merging working directory}
   1.423 +Este gancho es ejecutado luego de la creación de una etiqueta.
   1.424 +
   1.425 +Parámetros para este gancho:
   1.426 +\begin{itemize}
   1.427 +\item[\texttt{local}] Un booleano. Indica si la etiqueta es local a
   1.428 +  ésta instancia del repositorio (p.e.~almacenado en
   1.429 +  \sfilename{.hg/localtags}) o administrado por Mercurial (almacenado
   1.430 +  en \sfilename{.hgtags}).
   1.431 +\item[\texttt{node}] Un ID de conjunto de cambios. El ID del
   1.432 +  conjunto de cambios que fue etiquetado.
   1.433 +\item[\texttt{tag}] Una cadena. El nombre de la etiqueta que fue
   1.434 +  creada.
   1.435 +\end{itemize}
   1.436 +
   1.437 +Si la etiqueta creada está bajo control de revisiones, el gancho
   1.438 +\hook{commit} (sección~\ref{sec:hook:commit}) es ejecutado antes de
   1.439 +este gancho.
   1.440 +
   1.441 +Vea también: \hook{pretag} (sección~\ref{sec:hook:pretag})
   1.442 +
   1.443 +\subsection{\hook{update}---luego de actualizar o fusionar el
   1.444 +directorio de trabajo}
   1.445  \label{sec:hook:update}
   1.446  
   1.447 -This hook is run after an update or merge of the working directory
   1.448 -completes.  Since a merge can fail (if the external \command{hgmerge}
   1.449 -command fails to resolve conflicts in a file), this hook communicates
   1.450 -whether the update or merge completed cleanly.
   1.451 -
   1.452 -\begin{itemize}
   1.453 -\item[\texttt{error}] A boolean.  Indicates whether the update or
   1.454 -  merge completed successfully.
   1.455 -\item[\texttt{parent1}] A changeset ID.  The ID of the parent that the
   1.456 -  working directory was updated to.  If the working directory was
   1.457 -  merged, it will not have changed this parent.
   1.458 -\item[\texttt{parent2}] A changeset ID.  Only set if the working
   1.459 -  directory was merged.  The ID of the revision that the working
   1.460 -  directory was merged with.
   1.461 -\end{itemize}
   1.462 -
   1.463 -See also: \hook{preupdate} (section~\ref{sec:hook:preupdate})
   1.464 +Este gancho es ejecutado después de una actualización o fusión en el
   1.465 +directorio de trabajo. Ya que una fusión puede fallar (si el comando
   1.466 +externo \command{hgmerge} no puede resolver los conflictos en un
   1.467 +fichero), este gancho indica si la actualización o fusión fueron
   1.468 +completados adecuadamente.
   1.469 +
   1.470 +\begin{itemize}
   1.471 +\item[\texttt{error}] Un booleano. Indica si la actualización o fusión
   1.472 +  fue completada exitosamente.
   1.473 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID del padre
   1.474 +  al cual fue actualizado el directorio de trabajo. Si se fusionó el
   1.475 +  directorio de trabajo, no se habrá cambiado este padre.
   1.476 +\item[\texttt{parent2}] Un ID de conjunto de cambios. Sólo está
   1.477 +  definido si se fusionó el directorio de trabajo. El ID de la
   1.478 +  revisión con la que fue fusionado el directorio de trabajo.
   1.479 +\end{itemize}
   1.480 +
   1.481 +Vea también: \hook{preupdate} (sección~\ref{sec:hook:preupdate})
   1.482  
   1.483  %%% Local Variables: 
   1.484  %%% mode: latex