comparison en/daily.tex @ 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 1b55292716a4
children d4570b8c78bd
comparison
equal deleted inserted replaced
179:5fc4a45c069f 180:6413f88338df
364 Mercurial has a longstanding bug in which it fails to handle a merge 364 Mercurial has a longstanding bug in which it fails to handle a merge
365 where one side has a file with a given name, while another has a 365 where one side has a file with a given name, while another has a
366 directory with the same name. This is documented as~\bug{29}. 366 directory with the same name. This is documented as~\bug{29}.
367 \interaction{issue29.go} 367 \interaction{issue29.go}
368 368
369 \section{Recovering from mistakes}
370
371 Mercurial has some useful commands that will help you to recover from
372 some common mistakes.
373
374 The \hgcmd{revert} command lets you undo changes that you have made to
375 your working directory. For example, if you \hgcmd{add} a file by
376 accident, just run \hgcmd{revert} with the name of the file you added,
377 and while the file won't be touched in any way, it won't be tracked
378 for adding by Mercurial any longer, either. You can also use
379 \hgcmd{revert} to get rid of erroneous changes to a file.
380
381 It's useful to remember that the \hgcmd{revert} command is useful for
382 changes that you have not yet committed. Once you've committed a
383 change, if you decide it was a mistake, you can still do something
384 about it, though your options may be more limited.
385
386 For more information about the \hgcmd{revert} command, and details
387 about how to deal with changes you have already committed, see
388 chapter~\ref{cha:undo}.
389
369 %%% Local Variables: 390 %%% Local Variables:
370 %%% mode: latex 391 %%% mode: latex
371 %%% TeX-master: "00book" 392 %%% TeX-master: "00book"
372 %%% End: 393 %%% End: