# HG changeset patch # User Bryan O'Sullivan # Date 1175322027 25200 # Node ID 6413f88338dfb1f4f02df750550ec7d6370a801b # Parent 5fc4a45c069fd8f260e0557e943de7e292f50e6b Point to chapter on undoing mistakes. diff -r 5fc4a45c069f -r 6413f88338df en/daily.tex --- a/en/daily.tex Fri Mar 30 23:05:28 2007 -0700 +++ b/en/daily.tex Fri Mar 30 23:20:27 2007 -0700 @@ -366,6 +366,27 @@ directory with the same name. This is documented as~\bug{29}. \interaction{issue29.go} +\section{Recovering from mistakes} + +Mercurial has some useful commands that will help you to recover from +some common mistakes. + +The \hgcmd{revert} command lets you undo changes that you have made to +your working directory. For example, if you \hgcmd{add} a file by +accident, just run \hgcmd{revert} with the name of the file you added, +and while the file won't be touched in any way, it won't be tracked +for adding by Mercurial any longer, either. You can also use +\hgcmd{revert} to get rid of erroneous changes to a file. + +It's useful to remember that the \hgcmd{revert} command is useful for +changes that you have not yet committed. Once you've committed a +change, if you decide it was a mistake, you can still do something +about it, though your options may be more limited. + +For more information about the \hgcmd{revert} command, and details +about how to deal with changes you have already committed, see +chapter~\ref{cha:undo}. + %%% Local Variables: %%% mode: latex %%% TeX-master: "00book"