Mercurial > hgbook
changeset 298:91dda054ead0
more undo.tex
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Fri, 08 Feb 2008 02:48:57 +0900 |
parents | b8105146706f |
children | 5f6ebc8f4e74 |
files | ja/undo.tex |
diffstat | 1 files changed, 28 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/ja/undo.tex Fri Feb 08 02:14:00 2008 +0900 +++ b/ja/undo.tex Fri Feb 08 02:48:57 2008 +0900 @@ -282,24 +282,37 @@ \subsection{$B%U%!%$%k4IM}$N%_%9(B} \label{sec:undo:mgmt} -The \hgcmd{revert} command is useful for more than just modified -files. It lets you reverse the results of all of Mercurial's file -management commands---\hgcmd{add}, \hgcmd{remove}, and so on. +%The \hgcmd{revert} command is useful for more than just modified +%files. It lets you reverse the results of all of Mercurial's file +%management commands---\hgcmd{add}, \hgcmd{remove}, and so on. + +\hgcmd{revert}$B%3%^%s%I$OC1$KJQ99$7$?%U%!%$%k$rLa$9$@$1$G$J$/!$(B +\hgcmd{add}$B!$(B\hgcmd{remove}$B$H$$$C$?(BMercurial$B$N%U%!%$%kA`:n%3%^%s%I$N7k2L(B +$B$r<h$j>C$9$3$H$,$G$-$k!%(B -If you \hgcmd{add} a file, then decide that in fact you don't want -Mercurial to track it, use \hgcmd{revert} to undo the add. Don't -worry; Mercurial will not modify the file in any way. It will just -``unmark'' the file. +%If you \hgcmd{add} a file, then decide that in fact you don't want +%Mercurial to track it, use \hgcmd{revert} to undo the add. Don't +%worry; Mercurial will not modify the file in any way. It will just +%``unmark'' the file. +%\interaction{daily.revert.add} + +\hgcmd{add}$B$G%U%!%$%k$rDI2C$7$?8e$G!$(BMercurial$B$KDI@W$5$;$kI,MW$,$J$$$HJ,(B +$B$+$C$?;~!$(B\hgcmd{revert}$B$G(Badd$B$r<h$j>C$9$3$H$,$G$-$k!%(B\hgcmd{revert}$B$O%U%!(B +$B%$%k$N%^!<%/$r>C$9$@$1$G!$%U%!%$%k$NCf?H$O0l@ZJQ99$7$J$$$N$G?4G[$9$kI,MW(B +$B$O$J$$!%(B \interaction{daily.revert.add} -Similarly, if you ask Mercurial to \hgcmd{remove} a file, you can use -\hgcmd{revert} to restore it to the contents it had as of the parent -of the working directory. -\interaction{daily.revert.remove} -This works just as well for a file that you deleted by hand, without -telling Mercurial (recall that in Mercurial terminology, this kind of -file is called ``missing''). -\interaction{daily.revert.missing} +%Similarly, if you ask Mercurial to \hgcmd{remove} a file, you can use +%\hgcmd{revert} to restore it to the contents it had as of the parent +%of the working directory. +%\interaction{daily.revert.remove} +%This works just as well for a file that you deleted by hand, without +%telling Mercurial (recall that in Mercurial terminology, this kind of +%file is called ``missing''). +%\interaction{daily.revert.missing} + + + If you revert a \hgcmd{copy}, the copied-to file remains in your working directory afterwards, untracked. Since a copy doesn't affect