hgbook

changeset 479:5236357a00b2

finished hook.tex
author Javier Rojas <jerojasro@devnull.li>
date Sun Jan 04 21:51:51 2009 -0500 (2009-01-04)
parents 95bc07aaf1a8
children 4e2ebef2c9a4
files es/Leame.1st es/hook.tex
line diff
     1.1 --- a/es/Leame.1st	Sat Jan 03 18:31:12 2009 -0500
     1.2 +++ b/es/Leame.1st	Sun Jan 04 21:51:51 2009 -0500
     1.3 @@ -105,7 +105,7 @@
     1.4  || intro.tex       || Igor Támara   ||	  100%	  || 08/11/2008	||  09/11/2008 ||
     1.5  || collab.tex      || Igor Támara   ||    100%    || 10/11/2008 ||  06/12/2008 ||
     1.6  || filenames.tex   || Javier Rojas  ||     72%    || 27/11/2008 ||             ||
     1.7 -|| hook.tex        || Javier Rojas  ||     78%    || 01/12/2008 ||             ||
     1.8 +|| hook.tex        || Javier Rojas  ||    100%    || 01/12/2008 ||  04/01/2009 ||
     1.9  || mq.tex          || Igor Támara   ||    100%    || 06/12/2008 ||  13/12/2008 ||
    1.10  || hgext.tex       || Igor Támara   ||    100%    || 13/12/2008 ||  16/12/2008 ||
    1.11  || template.tex    || Igor Támara   ||    100%    || 27/12/2008 ||  01/01/2009 ||
     2.1 --- a/es/hook.tex	Sat Jan 03 18:31:12 2009 -0500
     2.2 +++ b/es/hook.tex	Sun Jan 04 21:51:51 2009 -0500
     2.3 @@ -1267,7 +1267,7 @@
     2.4  grupo de conjuntos de cambios, mientras que otras es más útil correrlo
     2.5  por cada conjunto de cambios.
     2.6  
     2.7 -Parámetros para este gancho.
     2.8 +Parámetros para este gancho:
     2.9  \begin{itemize}
    2.10  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del conjunto
    2.11    de cambios recién añadido.
    2.12 @@ -1309,237 +1309,259 @@
    2.13  
    2.14  Vea también: \hook{preoutgoing} (sección~\ref{sec:hook:preoutgoing})
    2.15  
    2.16 -\subsection{\hook{prechangegroup}---before starting to add remote changesets}
    2.17 +\subsection{\hook{prechangegroup}---antes de empezar la adición de
    2.18 +conjuntos de cambios remotos}
    2.19  \label{sec:hook:prechangegroup}
    2.20  
    2.21 -This controlling hook is run before Mercurial begins to add a group of
    2.22 -changesets from another repository.
    2.23 -
    2.24 -This hook does not have any information about the changesets to be
    2.25 -added, because it is run before transmission of those changesets is
    2.26 -allowed to begin.  If this hook fails, the changesets will not be
    2.27 -transmitted.
    2.28 -
    2.29 -One use for this hook is to prevent external changes from being added
    2.30 -to a repository.  For example, you could use this to ``freeze'' a
    2.31 -server-hosted branch temporarily or permanently so that users cannot
    2.32 -push to it, while still allowing a local administrator to modify the
    2.33 -repository.
    2.34 -
    2.35 -Parameters to this hook:
    2.36 -\begin{itemize}
    2.37 -\item[\texttt{source}] A string.  The source of these changes.  See
    2.38 -  section~\ref{sec:hook:sources} for details.
    2.39 -\item[\texttt{url}] A URL.  The location of the remote repository, if
    2.40 -  known.  See section~\ref{sec:hook:url} for more information.
    2.41 -\end{itemize}
    2.42 -
    2.43 -See also: \hook{changegroup} (section~\ref{sec:hook:changegroup}),
    2.44 -\hook{incoming} (section~\ref{sec:hook:incoming}), ,
    2.45 -\hook{pretxnchangegroup} (section~\ref{sec:hook:pretxnchangegroup})
    2.46 -
    2.47 -\subsection{\hook{precommit}---before starting to commit a changeset}
    2.48 +Este gancho de control es ejecutado antes de que Mercurial empiece a
    2.49 +añadir un grupo de conjuntos de cambios de otro repositorio.
    2.50 +
    2.51 +Este gancho no tiene ninguna información acerca de los conjuntos de
    2.52 +cambios que van a ser añadidos, porque es ejecutado antes de que se
    2.53 +permita que empiece la transmisión de dichos conjuntos de cambios. Si
    2.54 +este gancho falla, los conjuntos de cambios no serán transmitidos.
    2.55 +
    2.56 +Un uso para este gancho es prevenir que se añadan cambios externos a un
    2.57 +repositorio. Por ejemplo, usted podría usarlo para ``congelar''
    2.58 +temporal o permanentemente una rama ubicada en un servidor para que
    2.59 +los usuarios no puedan empujar cambios a ella, y permitiendo al mismo
    2.60 +tiempo modificaciones al repositorio por parte de un administrador
    2.61 +local.
    2.62 +
    2.63 +Parámetros para este gancho:
    2.64 +\begin{itemize}
    2.65 +\item[\texttt{source}] Una cadena. La fuente de estos cambios. Vea la
    2.66 +  sección~\ref{sec:hook:sources} para más detalles.
    2.67 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
    2.68 +  es conocida. Vea la sección~\ref{sec:hook:url} para más información.
    2.69 +\end{itemize}
    2.70 +
    2.71 +Vea también: \hook{changegroup} (sección~\ref{sec:hook:changegroup}),
    2.72 +\hook{incoming} (sección~\ref{sec:hook:incoming}), ,
    2.73 +\hook{pretxnchangegroup} (sección~\ref{sec:hook:pretxnchangegroup})
    2.74 +
    2.75 +\subsection{\hook{precommit}---antes de iniciar la consignación de un
    2.76 +conjunto de cambios}
    2.77  \label{sec:hook:precommit}
    2.78  
    2.79 -This hook is run before Mercurial begins to commit a new changeset.
    2.80 -It is run before Mercurial has any of the metadata for the commit,
    2.81 -such as the files to be committed, the commit message, or the commit
    2.82 -date.
    2.83 -
    2.84 -One use for this hook is to disable the ability to commit new
    2.85 -changesets, while still allowing incoming changesets.  Another is to
    2.86 -run a build or test, and only allow the commit to begin if the build
    2.87 -or test succeeds.
    2.88 -
    2.89 -Parameters to this hook:
    2.90 -\begin{itemize}
    2.91 -\item[\texttt{parent1}] A changeset ID.  The changeset ID of the first
    2.92 -  parent of the working directory.
    2.93 -\item[\texttt{parent2}] A changeset ID.  The changeset ID of the second
    2.94 -  parent of the working directory.
    2.95 -\end{itemize}
    2.96 -If the commit proceeds, the parents of the working directory will
    2.97 -become the parents of the new changeset.
    2.98 -
    2.99 -See also: \hook{commit} (section~\ref{sec:hook:commit}),
   2.100 -\hook{pretxncommit} (section~\ref{sec:hook:pretxncommit})
   2.101 -
   2.102 -\subsection{\hook{preoutgoing}---before starting to propagate changesets}
   2.103 +Este gancho es ejecutado antes de que Mercurial inicie la consignación
   2.104 +de un nuevo conjunto de cambios. Es ejecutado antes de que Mercurial
   2.105 +tenga cualquier de los metadatos para la consignación, como los
   2.106 +ficheros a ser consignados, el mensaje de consignación, o la fecha de
   2.107 +consignación.
   2.108 +
   2.109 +Un uso para este gancho es deshabilitar la capacidad de consignar
   2.110 +nuevos conjuntos de cambios, pero permitiendo conjuntos de cambios
   2.111 +entrantes. Otro es ejecutar un proceso de ensamble/compilación o
   2.112 +prueba, y permitir la consignación sólo si el ensamble/compilación o
   2.113 +prueba tiene éxito.
   2.114 +
   2.115 +Parámetros para este gancho:
   2.116 +\begin{itemize}
   2.117 +  \item[\texttt{parent1}] Un ID de conjunto de cambios. El ID de
   2.118 +  conjunto de cambios del primer padre del directorio de trabajo.
   2.119 +\item[\texttt{parent2}] Un ID de conjunto de cambios. El ID de
   2.120 +  conjunto de cambios del segundo padre del directorio de trabajo.
   2.121 +\end{itemize}
   2.122 +Si la consignación continúa, los padres del directorio de trabajo se
   2.123 +convertirán en los padres del nuevo conjunto de cambios.
   2.124 +
   2.125 +Vea también: \hook{commit} (sección~\ref{sec:hook:commit}),
   2.126 +\hook{pretxncommit} (sección~\ref{sec:hook:pretxncommit})
   2.127 +
   2.128 +\subsection{\hook{preoutgoing}---antes de empezar la propagación de
   2.129 +conjuntos de cambios}
   2.130  \label{sec:hook:preoutgoing}
   2.131  
   2.132 -This hook is invoked before Mercurial knows the identities of the
   2.133 -changesets to be transmitted.
   2.134 -
   2.135 -One use for this hook is to prevent changes from being transmitted to
   2.136 -another repository.
   2.137 -
   2.138 -Parameters to this hook:
   2.139 -\begin{itemize}
   2.140 -\item[\texttt{source}] A string.  The source of the operation that is
   2.141 -  attempting to obtain changes from this repository (see
   2.142 -  section~\ref{sec:hook:sources}).  See the documentation for the
   2.143 -  \texttt{source} parameter to the \hook{outgoing} hook, in
   2.144 -  section~\ref{sec:hook:outgoing}, for possible values of this
   2.145 -  parameter.
   2.146 -\item[\texttt{url}] A URL.  The location of the remote repository, if
   2.147 -  known.  See section~\ref{sec:hook:url} for more information.
   2.148 -\end{itemize}
   2.149 -
   2.150 -See also: \hook{outgoing} (section~\ref{sec:hook:outgoing})
   2.151 -
   2.152 -\subsection{\hook{pretag}---before tagging a changeset}
   2.153 +Este gancho es ejecutado antes de que Mercurial conozca las
   2.154 +identidades de los conjuntos de cambios que deben ser transmitidos.
   2.155 +
   2.156 +Un uso para este gancho es evitar que los cambios sean transmitidos a
   2.157 +otro repositorio.
   2.158 +
   2.159 +Parámetros para este gancho:
   2.160 +\begin{itemize}
   2.161 +  \item[\texttt{source}] Una cadena. La fuente la operación que está
   2.162 +    tratando de obtener cambios de éste repositorio (vea
   2.163 +    la sección~\ref{sec:hook:sources}).  Revise la documentación para
   2.164 +    el parámetro \texttt{source} del gancho \hook{outgoing}, en la
   2.165 +    sección~\ref{sec:hook:outgoing}, para ver los posibles valores de
   2.166 +    este parámetro.
   2.167 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
   2.168 +    es conocida. Vea la sección~\ref{sec:hook:url} para más información.
   2.169 +\end{itemize}
   2.170 +
   2.171 +Vea también: \hook{outgoing} (sección~\ref{sec:hook:outgoing})
   2.172 +
   2.173 +\subsection{\hook{pretag}---antes de etiquetar un conjunto de cambios}
   2.174  \label{sec:hook:pretag}
   2.175  
   2.176 -This controlling hook is run before a tag is created.  If the hook
   2.177 -succeeds, creation of the tag proceeds.  If the hook fails, the tag is
   2.178 -not created.
   2.179 -
   2.180 -Parameters to this hook:
   2.181 -\begin{itemize}
   2.182 -\item[\texttt{local}] A boolean.  Whether the tag is local to this
   2.183 -  repository instance (i.e.~stored in \sfilename{.hg/localtags}) or
   2.184 -  managed by Mercurial (stored in \sfilename{.hgtags}).
   2.185 -\item[\texttt{node}] A changeset ID.  The ID of the changeset to be tagged.
   2.186 -\item[\texttt{tag}] A string.  The name of the tag to be created.
   2.187 -\end{itemize}
   2.188 -
   2.189 -If the tag to be created is revision-controlled, the \hook{precommit}
   2.190 -and \hook{pretxncommit} hooks (sections~\ref{sec:hook:commit}
   2.191 -and~\ref{sec:hook:pretxncommit}) will also be run.
   2.192 -
   2.193 -See also: \hook{tag} (section~\ref{sec:hook:tag})
   2.194 -
   2.195 -\subsection{\hook{pretxnchangegroup}---before completing addition of
   2.196 -  remote changesets}
   2.197 +Este gancho de control es ejecutado antes de la creación de una
   2.198 +etiqueta. Si el gancho termina exitosamente, la creación de la
   2.199 +etiqueta continúa. Si el gancho falla, no se crea la etiqueta.
   2.200 +
   2.201 +Parámetros para este gancho:
   2.202 +\begin{itemize}
   2.203 +\item[\texttt{local}] Un booleano. Indica si la etiqueta es local a
   2.204 +  ésta instancia del repositorio (p.e.~almacenado en
   2.205 +  \sfilename{.hg/localtags}) o administrado por Mercurial (almacenado
   2.206 +  en \sfilename{.hgtags}).
   2.207 +\item[\texttt{node}] Un ID de conjunto de cambios. El ID del conjunto
   2.208 +  de cambios a etiquetar.
   2.209 +\item[\texttt{tag}] Una cadena. El nombre de la etiqueta por crear.
   2.210 +\end{itemize}
   2.211 +
   2.212 +Si la etiqueta que se va a crear se encuentra bajo control de
   2.213 +revisiones, los ganchos \hook{precommit} y \hook{pretxncommit}
   2.214 +(secciones~\ref{sec:hook:commit} y~\ref{sec:hook:pretxncommit})
   2.215 +también serán ejecutados.
   2.216 +
   2.217 +Vea también: \hook{tag} (sección~\ref{sec:hook:tag})
   2.218 +
   2.219 +\subsection{\hook{pretxnchangegroup}---antes de completar la adición
   2.220 +de conjuntos de cambios remotos}
   2.221  \label{sec:hook:pretxnchangegroup}
   2.222  
   2.223 -This controlling hook is run before a transaction---that manages the
   2.224 -addition of a group of new changesets from outside the
   2.225 -repository---completes.  If the hook succeeds, the transaction
   2.226 -completes, and all of the changesets become permanent within this
   2.227 -repository.  If the hook fails, the transaction is rolled back, and
   2.228 -the data for the changesets is erased.
   2.229 -
   2.230 -This hook can access the metadata associated with the almost-added
   2.231 -changesets, but it should not do anything permanent with this data.
   2.232 -It must also not modify the working directory.
   2.233 -
   2.234 -While this hook is running, if other Mercurial processes access this
   2.235 -repository, they will be able to see the almost-added changesets as if
   2.236 -they are permanent.  This may lead to race conditions if you do not
   2.237 -take steps to avoid them.
   2.238 -
   2.239 -This hook can be used to automatically vet a group of changesets.  If
   2.240 -the hook fails, all of the changesets are ``rejected'' when the
   2.241 -transaction rolls back.
   2.242 -
   2.243 -Parameters to this hook:
   2.244 -\begin{itemize}
   2.245 -\item[\texttt{node}] A changeset ID.  The changeset ID of the first
   2.246 -  changeset in the group that was added.  All changesets between this
   2.247 -  and \index{tags!\texttt{tip}}\texttt{tip}, inclusive, were added by
   2.248 -  a single \hgcmd{pull}, \hgcmd{push} or \hgcmd{unbundle}.
   2.249 -\item[\texttt{source}] A string.  The source of these changes.  See
   2.250 -  section~\ref{sec:hook:sources} for details.
   2.251 -\item[\texttt{url}] A URL.  The location of the remote repository, if
   2.252 -  known.  See section~\ref{sec:hook:url} for more information.
   2.253 -\end{itemize}
   2.254 -
   2.255 -See also: \hook{changegroup} (section~\ref{sec:hook:changegroup}),
   2.256 -\hook{incoming} (section~\ref{sec:hook:incoming}),
   2.257 -\hook{prechangegroup} (section~\ref{sec:hook:prechangegroup})
   2.258 -
   2.259 -\subsection{\hook{pretxncommit}---before completing commit of new changeset}
   2.260 +Este gancho de control es ejecutado antes de una transacción---la que
   2.261 +maneja la adición de un grupo de conjuntos de cambios nuevos desde
   2.262 +fuera del repositorio---se complete.  Si el gancho tiene éxito, la
   2.263 +transacción se completa, y todos los conjuntos de cambios se vuelven
   2.264 +permanentes dentro de este repositorio. Si el gancho falla, la
   2.265 +transacción es deshecha, y los datos para los conjuntos de cambios son
   2.266 +eliminados.
   2.267 +
   2.268 +Este gancho puede acceder a los metadatos asociados con los conjuntos
   2.269 +de cambios casi añadidos, pero no debe hacer nada permanente con estos
   2.270 +datos. Tampoco debe modificar el directorio de trabajo.
   2.271 +
   2.272 +Mientras este gancho está corriendo, si otro proceso Mercurial accesa
   2.273 +el repositorio, podrá ver los conjuntos de cambios casi añadidos como
   2.274 +si fueran permanentes. Esto puede llevar a condiciones de carrera si
   2.275 +usted no toma precauciones para evitarlas.
   2.276 +
   2.277 +Este gancho puede ser usado para examinar automáticamente un grupo de
   2.278 +conjuntos de cambios. Si el gancho falla, todos los conjuntos de
   2.279 +cambios son ``rechazados'' cuando la transacción se deshace.
   2.280 +
   2.281 +Parámetros para este gancho:
   2.282 +\begin{itemize}
   2.283 +  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del primer
   2.284 +  conjunto de cambios que fue añadido en el grupo. Todos los
   2.285 +  conjuntos de cambios entre éste y el
   2.286 +  \index{tags!\texttt{tip}}\texttt{tip}, inclusive, fueron añadidos
   2.287 +  por un único \hgcmd{pull}, \hgcmd{push} o \hgcmd{unbundle}.
   2.288 +\item[\texttt{source}] Una cadena. La fuente de estos cambios. Vea la
   2.289 +  sección~\ref{sec:hook:sources} para más detalles.
   2.290 +\item[\texttt{url}] Una URL. La ubicación del repositorio remoto, si
   2.291 +  es conocida. Vea la sección~\ref{sec:hook:url} para más información.
   2.292 +\end{itemize}
   2.293 +
   2.294 +Vea también: \hook{changegroup} (sección~\ref{sec:hook:changegroup}),
   2.295 +\hook{incoming} (sección~\ref{sec:hook:incoming}),
   2.296 +\hook{prechangegroup} (sección~\ref{sec:hook:prechangegroup})
   2.297 +
   2.298 +\subsection{\hook{pretxncommit}---antes de completar la consignación
   2.299 +de un nuevo conjunto de cambios}
   2.300  \label{sec:hook:pretxncommit}
   2.301  
   2.302 -This controlling hook is run before a transaction---that manages a new
   2.303 -commit---completes.  If the hook succeeds, the transaction completes
   2.304 -and the changeset becomes permanent within this repository.  If the
   2.305 -hook fails, the transaction is rolled back, and the commit data is
   2.306 -erased.
   2.307 -
   2.308 -This hook can access the metadata associated with the almost-new
   2.309 -changeset, but it should not do anything permanent with this data.  It
   2.310 -must also not modify the working directory.
   2.311 -
   2.312 -While this hook is running, if other Mercurial processes access this
   2.313 -repository, they will be able to see the almost-new changeset as if it
   2.314 -is permanent.  This may lead to race conditions if you do not take
   2.315 -steps to avoid them.
   2.316 -
   2.317 -Parameters to this hook:
   2.318 -\begin{itemize}
   2.319 -\item[\texttt{node}] A changeset ID.  The changeset ID of the newly
   2.320 -  committed changeset.
   2.321 -\item[\texttt{parent1}] A changeset ID.  The changeset ID of the first
   2.322 -  parent of the newly committed changeset.
   2.323 -\item[\texttt{parent2}] A changeset ID.  The changeset ID of the second
   2.324 -  parent of the newly committed changeset.
   2.325 -\end{itemize}
   2.326 -
   2.327 -See also: \hook{precommit} (section~\ref{sec:hook:precommit})
   2.328 -
   2.329 -\subsection{\hook{preupdate}---before updating or merging working directory}
   2.330 +Este gancho de control es ejecutado antes de que una transacción---que
   2.331 +maneja una nueva consignación---se complete. Si el gancho tiene éxito,
   2.332 +la transacción se completa y el conjunto de cambios se hace permanente
   2.333 +dentro de éste repositorio. Si el gancho falla, la transacción es
   2.334 +deshecha, y los datos de consignación son borrados.
   2.335 +
   2.336 +Este gancho tiene acceso a los metadatos asociados con el
   2.337 +prácticamente nuevo conjunto de cambios, pero no debería hacer nada
   2.338 +permanente con estos datos. Tampoco debe modificar el directorio de
   2.339 +trabajo.
   2.340 +
   2.341 +Mientras este gancho está corriendo, si otro proceso Mercurial accesa
   2.342 +éste repositorio, podrá ver el prácticamente nuevo conjunto de cambios
   2.343 +como si fuera permanente. Esto puede llevar a condiciones de carrera si
   2.344 +usted no toma precauciones para evitarlas.
   2.345 +
   2.346 +Parámetros para este gancho:
   2.347 +\begin{itemize}
   2.348 +  \item[\texttt{node}] Un ID de conjunto de cambios. El ID del
   2.349 +    conjunto de cambios recién consignado.
   2.350 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID de
   2.351 +  conjunto de cambios del primer padre del conjunto de cambios que
   2.352 +  acaba de ser consignado.
   2.353 +\item[\texttt{parent2}] Un ID de conjunto de cambios. El ID de
   2.354 +  conjunto de cambios del segundo padre del conjunto de cambios que
   2.355 +  acaba de ser consignado.
   2.356 +\end{itemize}
   2.357 +
   2.358 +Vea también: \hook{precommit} (sección~\ref{sec:hook:precommit})
   2.359 +
   2.360 +\subsection{\hook{preupdate}---antes de actualizar o fusionar el
   2.361 +directorio de trabajo}
   2.362  \label{sec:hook:preupdate}
   2.363  
   2.364 -This controlling hook is run before an update or merge of the working
   2.365 -directory begins.  It is run only if Mercurial's normal pre-update
   2.366 -checks determine that the update or merge can proceed.  If the hook
   2.367 -succeeds, the update or merge may proceed; if it fails, the update or
   2.368 -merge does not start.
   2.369 -
   2.370 -Parameters to this hook:
   2.371 -\begin{itemize}
   2.372 -\item[\texttt{parent1}] A changeset ID.  The ID of the parent that the
   2.373 -  working directory is to be updated to.  If the working directory is
   2.374 -  being merged, it will not change this parent.
   2.375 -\item[\texttt{parent2}] A changeset ID.  Only set if the working
   2.376 -  directory is being merged.  The ID of the revision that the working
   2.377 -  directory is being merged with.
   2.378 -\end{itemize}
   2.379 -
   2.380 -See also: \hook{update} (section~\ref{sec:hook:update})
   2.381 -
   2.382 -\subsection{\hook{tag}---after tagging a changeset}
   2.383 +Este gancho de control es ejecutado antes de actualizar o fusionar el
   2.384 +directorio de trabajo. Es ejecutado sólo si las revisiones usuales de
   2.385 +Mercurial antes de las actualizaciones determinan que la actualización
   2.386 +o fusión pueden proceder. Si el gancho termina exitosamente, la
   2.387 +actualización o fusión pueden proceder.; si falla, la actualización o
   2.388 +fusión no empiezan.
   2.389 +
   2.390 +Parámetros para este gancho:
   2.391 +\begin{itemize}
   2.392 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID del
   2.393 +  padre al que el directorio de trabajo será actualizado. Si se está
   2.394 +  fusionando el directorio de trabajo, no cambiará este padre.
   2.395 +\item[\texttt{parent2}] Un ID de conjunto de cambios. Sólo está
   2.396 +  definido si se está fusionando el directorio de trabajo. El ID de la
   2.397 +  revisión con la cual está siendo fusionado el directorio de trabajo.
   2.398 +\end{itemize}
   2.399 +
   2.400 +Vea también: \hook{update} (sección~\ref{sec:hook:update})
   2.401 +
   2.402 +\subsection{\hook{tag}---luego de etiquetar un conjunto de cambios}
   2.403  \label{sec:hook:tag}
   2.404  
   2.405 -This hook is run after a tag has been created.
   2.406 -
   2.407 -Parameters to this hook:
   2.408 -\begin{itemize}
   2.409 -\item[\texttt{local}] A boolean.  Whether the new tag is local to this
   2.410 -  repository instance (i.e.~stored in \sfilename{.hg/localtags}) or
   2.411 -  managed by Mercurial (stored in \sfilename{.hgtags}).
   2.412 -\item[\texttt{node}] A changeset ID.  The ID of the changeset that was
   2.413 -  tagged.
   2.414 -\item[\texttt{tag}] A string.  The name of the tag that was created.
   2.415 -\end{itemize}
   2.416 -
   2.417 -If the created tag is revision-controlled, the \hook{commit} hook
   2.418 -(section~\ref{sec:hook:commit}) is run before this hook.
   2.419 -
   2.420 -See also: \hook{pretag} (section~\ref{sec:hook:pretag})
   2.421 -
   2.422 -\subsection{\hook{update}---after updating or merging working directory}
   2.423 +Este gancho es ejecutado luego de la creación de una etiqueta.
   2.424 +
   2.425 +Parámetros para este gancho:
   2.426 +\begin{itemize}
   2.427 +\item[\texttt{local}] Un booleano. Indica si la etiqueta es local a
   2.428 +  ésta instancia del repositorio (p.e.~almacenado en
   2.429 +  \sfilename{.hg/localtags}) o administrado por Mercurial (almacenado
   2.430 +  en \sfilename{.hgtags}).
   2.431 +\item[\texttt{node}] Un ID de conjunto de cambios. El ID del
   2.432 +  conjunto de cambios que fue etiquetado.
   2.433 +\item[\texttt{tag}] Una cadena. El nombre de la etiqueta que fue
   2.434 +  creada.
   2.435 +\end{itemize}
   2.436 +
   2.437 +Si la etiqueta creada está bajo control de revisiones, el gancho
   2.438 +\hook{commit} (sección~\ref{sec:hook:commit}) es ejecutado antes de
   2.439 +este gancho.
   2.440 +
   2.441 +Vea también: \hook{pretag} (sección~\ref{sec:hook:pretag})
   2.442 +
   2.443 +\subsection{\hook{update}---luego de actualizar o fusionar el
   2.444 +directorio de trabajo}
   2.445  \label{sec:hook:update}
   2.446  
   2.447 -This hook is run after an update or merge of the working directory
   2.448 -completes.  Since a merge can fail (if the external \command{hgmerge}
   2.449 -command fails to resolve conflicts in a file), this hook communicates
   2.450 -whether the update or merge completed cleanly.
   2.451 -
   2.452 -\begin{itemize}
   2.453 -\item[\texttt{error}] A boolean.  Indicates whether the update or
   2.454 -  merge completed successfully.
   2.455 -\item[\texttt{parent1}] A changeset ID.  The ID of the parent that the
   2.456 -  working directory was updated to.  If the working directory was
   2.457 -  merged, it will not have changed this parent.
   2.458 -\item[\texttt{parent2}] A changeset ID.  Only set if the working
   2.459 -  directory was merged.  The ID of the revision that the working
   2.460 -  directory was merged with.
   2.461 -\end{itemize}
   2.462 -
   2.463 -See also: \hook{preupdate} (section~\ref{sec:hook:preupdate})
   2.464 +Este gancho es ejecutado después de una actualización o fusión en el
   2.465 +directorio de trabajo. Ya que una fusión puede fallar (si el comando
   2.466 +externo \command{hgmerge} no puede resolver los conflictos en un
   2.467 +fichero), este gancho indica si la actualización o fusión fueron
   2.468 +completados adecuadamente.
   2.469 +
   2.470 +\begin{itemize}
   2.471 +\item[\texttt{error}] Un booleano. Indica si la actualización o fusión
   2.472 +  fue completada exitosamente.
   2.473 +\item[\texttt{parent1}] Un ID de conjunto de cambios. El ID del padre
   2.474 +  al cual fue actualizado el directorio de trabajo. Si se fusionó el
   2.475 +  directorio de trabajo, no se habrá cambiado este padre.
   2.476 +\item[\texttt{parent2}] Un ID de conjunto de cambios. Sólo está
   2.477 +  definido si se fusionó el directorio de trabajo. El ID de la
   2.478 +  revisión con la que fue fusionado el directorio de trabajo.
   2.479 +\end{itemize}
   2.480 +
   2.481 +Vea también: \hook{preupdate} (sección~\ref{sec:hook:preupdate})
   2.482  
   2.483  %%% Local Variables: 
   2.484  %%% mode: latex