Mercurial > hgbook
comparison ja/template.tex @ 835:8a3041e6f3cb
reflect comments by Hiroshi Someya.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 11 Jul 2009 19:25:35 +0900 |
parents | bc92b28fc970 |
children |
comparison
equal
deleted
inserted
replaced
834:896ab6eaf1c6 | 835:8a3041e6f3cb |
---|---|
100 %other commands. | 100 %other commands. |
101 | 101 |
102 $B$3$N%^%K%e%"%k$G=q$$$F$$$k$h$&$K!$$3$l$^$G$N$H$3$m!$$3$l$i$N%3%^%s%I$@$1(B | 102 $B$3$N%^%K%e%"%k$G=q$$$F$$$k$h$&$K!$$3$l$^$G$N$H$3$m!$$3$l$i$N%3%^%s%I$@$1(B |
103 $B$,%9%?%$%k$H%F%s%W%l!<%H$r%5%]!<%H$7$F$$$k!%$3$l$i$,%+%9%?%^%$%:2DG=$J=P(B | 103 $B$,%9%?%$%k$H%F%s%W%l!<%H$r%5%]!<%H$7$F$$$k!%$3$l$i$,%+%9%?%^%$%:2DG=$J=P(B |
104 $BNO$,I,MW$J:G$b=EMW$J%3%^%s%I$G$"$k$?$a!$(B Mercurial$B$N%f!<%6%3%_%e%K%F%#$+(B | 104 $BNO$,I,MW$J:G$b=EMW$J%3%^%s%I$G$"$k$?$a!$(B Mercurial$B$N%f!<%6%3%_%e%K%F%#$+(B |
105 $B$iB>$N%3%^%s%I$K%9%?%$%k$H%F%s%W%l!<%H%5%]!<%H$rE,MQ$+$N$&$K$;$h$H$$$&%W(B | 105 $B$iB>$N%3%^%s%I$K%9%?%$%k$H%F%s%W%l!<%H%5%]!<%H$rE,MQ2DG=$K$;$h$H$$$&%W%l%C(B |
106 $B%l%C%7%c!<$O$[$H$s$I$J$$!%(B | 106 $B%7%c!<$O$[$H$s$I$J$$!%(B |
107 | 107 |
108 %\section{The basics of templating} | 108 %\section{The basics of templating} |
109 \section{$B%F%s%W%l!<%H$N4pK\(B} | 109 \section{$B%F%s%W%l!<%H$N4pK\(B} |
110 | 110 |
111 %At its simplest, a Mercurial template is a piece of text. Some of the | 111 %At its simplest, a Mercurial template is a piece of text. Some of the |
112 %text never changes, while other parts are \emph{expanded}, or replaced | 112 %text never changes, while other parts are \emph{expanded}, or replaced |
113 %with new text, when necessary. | 113 %with new text, when necessary. |
114 | 114 |
115 $B:G$bC1=c$J(BMercurial$B%F%s%W%l!<%H$O%F%-%9%HJR$G$"$k!%%F%-%9%H$N$"$kItJ,$OIT(B | 115 $B:G$bC1=c$J(BMercurial$B%F%s%W%l!<%H$O%F%-%9%H$NCGJR$G$"$k!%%F%-%9%H$N0lIt$OI,(B |
116 $BJQ$G!$B>$NItJ,$OI,MW$K1~$8$F(B\emph{$BE83+(B}$B$5$l$k$?$j?7$7$$%F%-%9%H$KCV49$5$l(B | 116 $BMW$K1~$8$F(B\emph{$BE83+(B}$B$5$l$?$j?7$7$$%F%-%9%H$KCV49$5$l!$JL$NItJ,$OITJQ$G(B |
117 $B$k!%(B | 117 $B$"$k!%(B |
118 | 118 |
119 %Before we continue, let's look again at a simple example of | 119 %Before we continue, let's look again at a simple example of |
120 %Mercurial's normal output. | 120 %Mercurial's normal output. |
121 | 121 |
122 $B$5$i$KB3$1$kA0$K(BMercurial$BI8=`=PNO$NNc$r$b$&0lEY8+$F$_$h$&!%(B | 122 $B$5$i$KB3$1$kA0$K(BMercurial$BI8=`=PNO$NNc$r$b$&0lEY8+$F$_$h$&!%(B |
318 %use. Mercurial lets you specify an optional chain of \emph{filters} | 318 %use. Mercurial lets you specify an optional chain of \emph{filters} |
319 %to modify the result of expanding a keyword. You have already seen a | 319 %to modify the result of expanding a keyword. You have already seen a |
320 %common filter, \tplkwfilt{date}{isodate}, in action above, to make a | 320 %common filter, \tplkwfilt{date}{isodate}, in action above, to make a |
321 %date readable. | 321 %date readable. |
322 | 322 |
323 $B%F%s%W%l!<%HE83+$N7k2L$N$&$A!$$$$/$D$+$O$?$d$9$/MxMQ$G$-$k$b$N$G$O$J$$!%(B | 323 $B%F%s%W%l!<%HE83+$N7k2L$K$O!$$=$N$^$^$G$OMxMQ$7$E$i$$$b$N$b$"$k!%(B |
324 Mercurial$B$OE83+$5$l$k%-!<%o!<%I$rJQ99$9$k$?$a$N0lO"$N(B\emph{filters}$B%*%W%7%g(B | 324 Mercurial$B$,Ds6!$9$k(B\emph{filters}$B%*%W%7%g%s$rMQ$$$F!$E83+$5$l$?%-!<%o!<%I(B |
325 $B%s$rDs6!$7$F$$$k!%F|;~$r2DFI$K$9$k$?$a$K$h$/MQ$$$i$l$k(B | 325 $B$rFI$_$d$9$/2C9)$9$k$3$H$,$G$-$k!%F|;~$r2DFI$K$9$k$?$a$K$h$/MQ$$$i$l$k(B |
326 \tplkwfilt{date}{isodate}$B%U%#%k%?$NF0:nNc$K$D$$$F$O4{$K8+$F$-$?!%(B | 326 \tplkwfilt{date}{isodate}$B%U%#%k%?$NF0:nNc$K$D$$$F$O4{$K8+$F$-$?!%(B |
327 | 327 |
328 %Below is a list of the most commonly used filters that Mercurial | 328 %Below is a list of the most commonly used filters that Mercurial |
329 %supports. While some filters can be applied to any text, others can | 329 %supports. While some filters can be applied to any text, others can |
330 %only be used in specific circumstances. The name of each filter is | 330 %only be used in specific circumstances. The name of each filter is |
541 %like. The following chain of filters tidies up a description, then | 541 %like. The following chain of filters tidies up a description, then |
542 %makes sure that it fits cleanly into 68 columns, then indents it by a | 542 %makes sure that it fits cleanly into 68 columns, then indents it by a |
543 %further 8~characters (at least on Unix-like systems, where a tab is | 543 %further 8~characters (at least on Unix-like systems, where a tab is |
544 %conventionally 8~characters wide). | 544 %conventionally 8~characters wide). |
545 | 545 |
546 $BK>$_$N=PNO$r$($k$?$a$KJ#?t$N%U%#%k%?$rAH$_9g$o$;$k$N$O$?$d$9$$!%0J2<$N0l(B | 546 $BJ#?t$N%U%#%k%?$rAH$_9g$o$;!$K>$_$N=PNO$r4JC1$K:n$k$3$H$,$G$-$k!%$3$3$G$O(B |
547 $BO"$N%U%#%k%?$O@bL@J8$r@0M}$7!$$-$l$$$K(B68$B7e$K<}$^$k$h$&$K@07A$7!$(B8$BJ8;z$N(B | 547 $BNc$H$7$F!$@bL@J8$r@0M}$7!$$-$l$$$K(B68$B7e$K<}$^$k$h$&$K@07A$7!$(B8$BJ8;z$N%$%s%G(B |
548 $B%$%s%G%s%H$r9T$&!%!J(BUNIX$B%7%9%F%`$G$O%?%V$O=,47E*$K(B8$B7eJ,$NI}$r;}$D!%!K(B | 548 $B%s%H$r9T$&%U%#%k%?%A%'!<%s$r<($9!%!J(BUNIX$B%7%9%F%`$N=,47$G$O!$%?%VI}$O(B8$B7e$G(B |
549 $B$"$k!%!K(B | |
549 | 550 |
550 \interaction{template.simple.combine} | 551 \interaction{template.simple.combine} |
551 | 552 |
552 %Note the use of ``\Verb+\t+'' (a tab character) in the template to | 553 %Note the use of ``\Verb+\t+'' (a tab character) in the template to |
553 %force the first line to be indented; this is necessary since | 554 %force the first line to be indented; this is necessary since |