changeset 180:6413f88338df

Point to chapter on undoing mistakes.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 30 Mar 2007 23:20:27 -0700
parents 5fc4a45c069f
children d4570b8c78bd
files en/daily.tex
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"