Mercurial > hgbook
changeset 345:6da6c5741e90
more mq.tex
author | Yoshiki Yazawa <yaz@honeyplnaet.jp> |
---|---|
date | Sun, 13 Jul 2008 04:11:36 +0900 |
parents | cea705a64649 |
children | 0b99bf82b573 |
files | ja/mq.tex ja/todo.txt |
diffstat | 2 files changed, 42 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/ja/mq.tex Sun Jul 13 03:48:07 2008 +0900 +++ b/ja/mq.tex Sun Jul 13 04:11:36 2008 +0900 @@ -1298,20 +1298,31 @@ %\section{Identifying patches} \section{$B%Q%C%A$N<1JL(B} -MQ commands that work with patches let you refer to a patch either by -using its name or by a number. By name is obvious enough; pass the -name \filename{foo.patch} to \hgxcmd{mq}{qpush}, for example, and it will -push patches until \filename{foo.patch} is applied. +%MQ commands that work with patches let you refer to a patch either by +%using its name or by a number. By name is obvious enough; pass the +%name \filename{foo.patch} to \hgxcmd{mq}{qpush}, for example, and it will +%push patches until \filename{foo.patch} is applied. + +$B%Q%C%A$r07$&(BMQ$B%3%^%s%I$O!$%Q%C%A$r%Q%C%AL>$^$?$OHV9f$G;2>H$9$k!%L>A0$N>l(B +$B9g$ONc$($P%U%!%$%kL>(B\filename{foo.patch}$B$r(B\hgxcmd{mq}{qpush}$B$KEO$9!%$3$N(B +$B>l9g!$%3%^%s%I$O(B\filename{foo.patch}$B$^$G$N%U%!%$%k$r%W%C%7%e$9$k!%(B -As a shortcut, you can refer to a patch using both a name and a -numeric offset; \texttt{foo.patch-2} means ``two patches before -\texttt{foo.patch}'', while \texttt{bar.patch+4} means ``four patches -after \texttt{bar.patch}''. +%As a shortcut, you can refer to a patch using both a name and a +%numeric offset; \texttt{foo.patch-2} means ``two patches before +%\texttt{foo.patch}'', while \texttt{bar.patch+4} means ``four patches +%after \texttt{bar.patch}''. -Referring to a patch by index isn't much different. The first patch -printed in the output of \hgxcmd{mq}{qseries} is patch zero (yes, it's one -of those start-at-zero counting systems); the second is patch one; and -so on +$B%7%g!<%H%+%C%H$H$7$F!$%Q%C%A$KL>A0$H?t;z$K$h$k%*%U%;%C%HN>J}$rMQ$$$F;2>H(B +$B$9$k$3$H$,$G$-$k!%(B\texttt{foo.patch-2}$B$O(B``\texttt{foo.patch}$B$N(B2$B$DA0$N%Q%C(B +$B%A(B''$B$H2r<a$5$l$k!%$^$?!$(B\texttt{bar.patch+4}$B$O(B``\texttt{bar.patch}$B$N(B4$B$D(B +$B8e$N%Q%C%A(B''$B$H2r<a$5$l$k!%(B + +%Referring to a patch by index isn't much different. The first patch +%printed in the output of \hgxcmd{mq}{qseries} is patch zero (yes, it's one +%of those start-at-zero counting systems); the second is patch one; and +%so on + +$B%$%s%G%C%/%9$,$=$l$[$I0c$o$J$$%Q%C%A$X$N;2>H$O(B MQ also makes it easy to work with patches when you are using normal Mercurial commands. Every command that accepts a changeset ID will @@ -1322,18 +1333,28 @@ names!\texttt{qtip}}\texttt{qtip} identify the ``bottom-most'' and topmost applied patches, respectively. -These additions to Mercurial's normal tagging capabilities make -dealing with patches even more of a breeze. +%These additions to Mercurial's normal tagging capabilities make +%dealing with patches even more of a breeze. +Mercurial$B$NDL>o$N%?%05!G=$X$N$3$l$i$NDI2C$O!$%Q%C%A$N<h$j07$$$K$*$$$FBg$-(B +$B$J0UL#$r;}$D!%(B \begin{itemize} -\item Want to patchbomb a mailing list with your latest series of - changes? +%\item Want to patchbomb a mailing list with your latest series of +% changes? +\item $B0lO"$N:G?7$NJQ99$r%Q%C%AGzCF$H$7$F%a!<%j%s%0%j%9%H$X$KEj$29~$_$?$$(B + $B$@$m$&$+!)(B \begin{codesample4} hg email qbase:qtip \end{codesample4} - (Don't know what ``patchbombing'' is? See - section~\ref{sec:hgext:patchbomb}.) -\item Need to see all of the patches since \texttt{foo.patch} that - have touched files in a subdirectory of your tree? +% (Don't know what ``patchbombing'' is? See +% section~\ref{sec:hgext:patchbomb}.) +(``patchbombing''$B$,2?$+J,$+$i$J$1$l$P(Bsection~\ref{sec:hgext:patchbomb}$B$r(B + $B;2>H$N$3$H!%(B) +%\item Need to see all of the patches since \texttt{foo.patch} that +% have touched files in a subdirectory of your tree? + \item \texttt{foo.patch}$B0J9_$N$9$Y$F$N%Q%C%A$r8+$?$$$+!)(B + +$B%D%j!<$NCf$N%5%V%D%j!<(B + \begin{codesample4} hg log -r foo.patch:qtip \emph{subdir} \end{codesample4}