hgbook
changeset 356:0db175abfaf3
some friggin' merge or something like that.
author | jerojasro@localhost |
---|---|
date | Tue Oct 21 22:41:51 2008 -0500 (2008-10-21) |
parents | 5e325122bea5 11d7896cd2ac |
children | dae36f024e14 |
files |
line diff
1.1 --- a/es/daily.tex Tue Oct 21 21:53:39 2008 -0500 1.2 +++ b/es/daily.tex Tue Oct 21 22:41:51 2008 -0500 1.3 @@ -86,79 +86,83 @@ 1.4 Otra forma de abordar la necesidad de un archivo vacío es crear 1.5 simplemente uno en sus guiones de construcción antes de ser necesarios. 1.6 1.7 -\section{How to stop tracking a file} 1.8 - 1.9 -Once you decide that a file no longer belongs in your repository, use 1.10 -the \hgcmd{remove} command; this deletes the file, and tells Mercurial 1.11 -to stop tracking it. A removed file is represented in the output of 1.12 -\hgcmd{status} with a ``\texttt{R}''. 1.13 +\section{Cómo dejar de hacer seguimiento a un archivo} 1.14 + 1.15 +Si decide que un archivo no pertenece a su repositorio, use la orden 1.16 +\hgcmd{remove}; se borrará el archivo y le indicará a Mercurial que 1.17 +deje de hacerle seguimiento. Los archivos eliminados se representan 1.18 +con ``\texttt{R}'' al usar \hgcmd{status}. 1.19 \interaction{daily.files.remove} 1.20 1.21 -After you \hgcmd{remove} a file, Mercurial will no longer track 1.22 -changes to that file, even if you recreate a file with the same name 1.23 -in your working directory. If you do recreate a file with the same 1.24 -name and want Mercurial to track the new file, simply \hgcmd{add} it. 1.25 -Mercurial will know that the newly added file is not related to the 1.26 -old file of the same name. 1.27 - 1.28 -\subsection{Removing a file does not affect its history} 1.29 - 1.30 -It is important to understand that removing a file has only two 1.31 -effects. 1.32 +Después de hacer \hgcmd{remove} a un archivo, Mercurial dejará de 1.33 +hacer seguimiento al mismo, incluso si recrea el archivo con el mismo 1.34 +nombre en su directorio de trabajo. Si decide recrear un archivo con 1.35 +el mismo nombre y desea que Mercurial le haga seguimiento, basta con 1.36 +hacerle \hgcmd{add}. Mercurial sabrá que el archivo recientemente 1.37 +adicionado no está relacionado con el archivo anterior que tenía el 1.38 +mismo nombre. 1.39 + 1.40 +\subsection{Al eliminar un archivo no se afecta su historia} 1.41 + 1.42 +Es preciso tener en cuenta que al eliminar un archivo se tiene 1.43 +dos efectos solamente. 1.44 \begin{itemize} 1.45 -\item It removes the current version of the file from the working 1.46 - directory. 1.47 -\item It stops Mercurial from tracking changes to the file, from the 1.48 - time of the next commit. 1.49 +\item Se elimina la versión actual del fichero del directorio de 1.50 +trabajo. 1.51 +\item Mercurial deja de hacer seguimiento a los cambios del fichero 1.52 + desde la próxima consignación. 1.53 \end{itemize} 1.54 -Removing a file \emph{does not} in any way alter the \emph{history} of 1.55 -the file. 1.56 - 1.57 -If you update the working directory to a changeset in which a file 1.58 -that you have removed was still tracked, it will reappear in the 1.59 -working directory, with the contents it had when you committed that 1.60 -changeset. If you then update the working directory to a later 1.61 -changeset, in which the file had been removed, Mercurial will once 1.62 -again remove the file from the working directory. 1.63 - 1.64 -\subsection{Missing files} 1.65 - 1.66 -Mercurial considers a file that you have deleted, but not used 1.67 -\hgcmd{remove} to delete, to be \emph{missing}. A missing file is 1.68 -represented with ``\texttt{!}'' in the output of \hgcmd{status}. 1.69 -Mercurial commands will not generally do anything with missing files. 1.70 +Al eliminar un fichero \emph{no} se altera de ninguna manera la 1.71 +\emph{historia} del mismo. 1.72 + 1.73 +Si actualiza su directorio de trabajo a un conjunto de cambios en el 1.74 +cual esl archivo que eliminó aún era tenido en cuenta, reaparecerá en 1.75 +el directorio de trabajo, con los contenidos que este tenía cuando se 1.76 +consignó tal conjunto de cambios. Si usted actualiza el directorio de 1.77 +trabajo a un conjunto de cambios posterior en el cual el archivo había 1.78 +sido eliminado, Mercurial lo eliminará de nuevo del directorio de 1.79 +trabajo. 1.80 + 1.81 +\subsection{Archivos perdidos} 1.82 + 1.83 +Mercurial considera como \emph{perdido} un archivo que usted borró, 1.84 +pero para el que no se usó \hgcmd{remove}. Los archivos perdidos se 1.85 +representan con ``\texttt{!}'' al visualizar \hgcmd{status}. 1.86 +Las órdenes de Mercurial generalmente no harán nada con los archivos 1.87 +perdidos. 1.88 \interaction{daily.files.missing} 1.89 1.90 -If your repository contains a file that \hgcmd{status} reports as 1.91 -missing, and you want the file to stay gone, you can run 1.92 -\hgcmdargs{remove}{\hgopt{remove}{--after}} at any time later on, to 1.93 -tell Mercurial that you really did mean to remove the file. 1.94 +Si su repositorio contiene un archivo que \hgcmd{status} reporta como 1.95 +perdido, y desea que el mismo se vaya, se puede usar 1.96 +\hgcmdargs{remove}{\hgopt{remove}{--after}} posteriormente para 1.97 +indicarle a Mercurial que usted deseaba borrar tal archivo. 1.98 \interaction{daily.files.remove-after} 1.99 1.100 -On the other hand, if you deleted the missing file by accident, use 1.101 -\hgcmdargs{revert}{\emph{filename}} to recover the file. It will 1.102 -reappear, in unmodified form. 1.103 +Por otro lado, si borró un fichero perdido por accidente, puede usar 1.104 +\hgcmdargs{revert}{\emph{nombre de fichero}} para recuperar el 1.105 +fichero. Reaparecerá sin modificaciones. 1.106 \interaction{daily.files.recover-missing} 1.107 1.108 -\subsection{Aside: why tell Mercurial explicitly to 1.109 - remove a file?} 1.110 - 1.111 -You might wonder why Mercurial requires you to explicitly tell it that 1.112 -you are deleting a file. Early during the development of Mercurial, 1.113 -it let you delete a file however you pleased; Mercurial would notice 1.114 -the absence of the file automatically when you next ran a 1.115 -\hgcmd{commit}, and stop tracking the file. In practice, this made it 1.116 -too easy to accidentally remove a file without noticing. 1.117 - 1.118 -\subsection{Useful shorthand---adding and removing files 1.119 - in one step} 1.120 - 1.121 -Mercurial offers a combination command, \hgcmd{addremove}, that adds 1.122 -untracked files and marks missing files as removed. 1.123 +\subsection{Nota al margen: ¿Por qué decirle explícitamente a Mercurial 1.124 + que elimine un archivo?} 1.125 + 1.126 +Es posible que se haya preguntado por qué Mercurial exige que usted le 1.127 +indique explícitamente que está borrando un archivo. Al principio del 1.128 +desarrollo de Mercurial, este permitía que usted borrara el archivo 1.129 +sin más; Mercurial se daría cuanta de la ausencia del archivo 1.130 +automáticamente después de la ejecución de \hgcmd{commit}, y dejaba de 1.131 +hacer seguimiento al archivo. En la práctica, resultaba muy sencillo 1.132 +borrar un archivo accidentalmente sin darse cuenta. 1.133 + 1.134 +\subsection{Atajo útil---agregar y eliminar archivos en un solo paso} 1.135 + 1.136 +Mercurial ofrece una orden combinada, \hgcmd{addremove}, que agrega 1.137 +los archivos que no tienen seguimiento y marca los archivos faltantes 1.138 +como eliminados. 1.139 \interaction{daily.files.addremove} 1.140 -The \hgcmd{commit} command also provides a \hgopt{commit}{-A} option 1.141 -that performs this same add-and-remove, immediately followed by a 1.142 -commit. 1.143 +La orden \hgcmd{commit} su puede usar con la opción \hgopt{commit}{-A} 1.144 +que aplica el agregar-eliminar, seguido inmediatamente de una 1.145 +consignación. 1.146 \interaction{daily.files.commit-addremove} 1.147 1.148 \section{Copying files}