Mercurial > hgbook
comparison ja/hook.tex @ 835:8a3041e6f3cb
reflect comments by Hiroshi Someya.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 11 Jul 2009 19:25:35 +0900 |
parents | 2a93b1d35990 |
children | d1f676a6a4b3 |
comparison
equal
deleted
inserted
replaced
834:896ab6eaf1c6 | 835:8a3041e6f3cb |
---|---|
316 %repository never pay attention to locks. This lockless reading scheme | 316 %repository never pay attention to locks. This lockless reading scheme |
317 %greatly increases performance and concurrency. | 317 %greatly increases performance and concurrency. |
318 | 318 |
319 Mercurial$B$O%G!<%?$NFI$_=q$-$N=g=x$rCm0U?<$/9T$&$?$a!$%j%]%8%H%j$+$i$N%G!<(B | 319 Mercurial$B$O%G!<%?$NFI$_=q$-$N=g=x$rCm0U?<$/9T$&$?$a!$%j%]%8%H%j$+$i$N%G!<(B |
320 $B%?FI$_=P$7$N:]$K%m%C%/$r<hF@$9$kI,MW$,$J$$!%(B Mercurial$B$N%j%]%8%H%j$+$iFI(B | 320 $B%?FI$_=P$7$N:]$K%m%C%/$r<hF@$9$kI,MW$,$J$$!%(B Mercurial$B$N%j%]%8%H%j$+$iFI(B |
321 $B$_=P$7$r9T$&ItJ,$O!$%m%C%/$rA4$/5$$K$9$kI,MW$,$J$$!%$3$NL5%m%C%/FI$_=P$7(B | 321 $B$_=P$7$r9T$&ItJ,$O!$%m%C%/$rA4$/5$$K$9$kI,MW$,$J$$!%$3$N%m%C%/$J$7FI$_=P(B |
322 $B$K$h$C$F!$F1;~<B9T@-$H@-G=$rBgI}$K9b$a$F$$$k!%(B | 322 $B$7$K$h$C$F!$F1;~<B9T@-$H@-G=$rBgI}$K9b$a$F$$$k!%(B |
323 | 323 |
324 %With great performance comes a trade-off, though, one which has the | 324 %With great performance comes a trade-off, though, one which has the |
325 %potential to cause you trouble unless you're aware of it. To describe | 325 %potential to cause you trouble unless you're aware of it. To describe |
326 %this requires a little detail about how Mercurial adds changesets to a | 326 %this requires a little detail about how Mercurial adds changesets to a |
327 %repository and reads those changes. | 327 %repository and reads those changes. |
1098 %specific users. | 1098 %specific users. |
1099 | 1099 |
1100 \hgext{acl}$B%U%C%/$r%F%9%H$7$?$$>l9g$O!$(BMercurial$B$N%G%P%C%0=PNO$rM-8z$K$7(B | 1100 \hgext{acl}$B%U%C%/$r%F%9%H$7$?$$>l9g$O!$(BMercurial$B$N%G%P%C%0=PNO$rM-8z$K$7(B |
1101 $B$F<B9T$9$k$HNI$$!%%5!<%P>e$G<B9T$9$k$N$G$"$l$P!"(B\hggopt{--debug}$B%*%W%7%g(B | 1101 $B$F<B9T$9$k$HNI$$!%%5!<%P>e$G<B9T$9$k$N$G$"$l$P!"(B\hggopt{--debug}$B%*%W%7%g(B |
1102 $B%s$rEO$9$N$OITJX$G$"$C$?$j!"IT2DG=$G$"$C$?$j$9$k$3$H$,$"$k!#$3$N$?$a!"%G(B | 1102 $B%s$rEO$9$N$OITJX$G$"$C$?$j!"IT2DG=$G$"$C$?$j$9$k$3$H$,$"$k!#$3$N$?$a!"%G(B |
1103 $B%P%C%0=PNO$O(B \hgrc $B$G$($bM-8z$K$G$-$k$3$H$r5-21$7$F$*$/$Y$-$G$"$k!%(B | 1103 $B%P%C%0=PNO$O(B \hgrc $B$G$bM-8z$K$G$-$k$3$H$r5-21$7$F$*$/$Y$-$G$"$k!%(B |
1104 \begin{codesample2} | 1104 \begin{codesample2} |
1105 [ui] | 1105 [ui] |
1106 debug = true | 1106 debug = true |
1107 \end{codesample2} | 1107 \end{codesample2} |
1108 $B%G%P%C%0=PNO$,M-8z$N>l9g!$(B\hgext{acl}$B%U%C%/$O!$FCDj$N%f!<%6$r5v2D$"$k$$(B | 1108 $B%G%P%C%0=PNO$,M-8z$N>l9g!$(B\hgext{acl}$B%U%C%/$O!$FCDj$N%f!<%6$r5v2D$"$k$$(B |
1314 %update a bug. If this does not suit your needs, you can map committer | 1314 %update a bug. If this does not suit your needs, you can map committer |
1315 %email addresses to Bugzilla user names using a \rcsection{usermap} | 1315 %email addresses to Bugzilla user names using a \rcsection{usermap} |
1316 %section. | 1316 %section. |
1317 | 1317 |
1318 $B%G%U%)%k%H$G$O(B\hgext{bugzilla}$B%U%C%/$O%P%0$r99?7$9$k(BBugzilla$B%f!<%6L>$H$7(B | 1318 $B%G%U%)%k%H$G$O(B\hgext{bugzilla}$B%U%C%/$O%P%0$r99?7$9$k(BBugzilla$B%f!<%6L>$H$7(B |
1319 $B$F%A%'%s%8%;%C%H$N%3%_%C%?$N(Bemail$B%"%I%l%9$r;H$*$&$H$9$k!%(B | 1319 $B$F%A%'%s%8%;%C%H$N%3%_%C%?$N(Bemail$B%"%I%l%9$r;H$*$&$H$9$k!%$3$N5sF0$,K>$^$7(B |
1320 $B$3$N5sF0$,K>$^$7$/$J$$>l9g$O!$(B\rcsection{usermap}$B%;%/%7%g%s$r$;$C$F$$$9$k(B | 1320 $B$/$J$$>l9g$O!$(B\rcsection{usermap}$B%;%/%7%g%s$r@_Dj$9$k$3$H$G%3%_%C%?$N(B |
1321 $B$3$H$G%3%_%C%?$N(Bemail$B%"%I%l%9$r(BBugzilla$B$N%f!<%6L>$K%^%C%W$9$k$3$H$,$G$-$k!%(B | 1321 email$B%"%I%l%9$r(BBugzilla$B$N%f!<%6L>$K%^%C%W$9$k$3$H$,$G$-$k!%(B |
1322 | 1322 |
1323 %Each item in the \rcsection{usermap} section contains an email address | 1323 %Each item in the \rcsection{usermap} section contains an email address |
1324 %on the left, and a Bugzilla user name on the right. | 1324 %on the left, and a Bugzilla user name on the right. |
1325 %\begin{codesample2} | 1325 %\begin{codesample2} |
1326 % [usermap] | 1326 % [usermap] |
1818 %environment variable's name is converted in upper case and prefixed | 1818 %environment variable's name is converted in upper case and prefixed |
1819 %with the string ``\texttt{HG\_}''. For example, if the name of a | 1819 %with the string ``\texttt{HG\_}''. For example, if the name of a |
1820 %parameter is ``\texttt{node}'', the name of the environment variable | 1820 %parameter is ``\texttt{node}'', the name of the environment variable |
1821 %representing that parameter will be ``\texttt{HG\_NODE}''. | 1821 %representing that parameter will be ``\texttt{HG\_NODE}''. |
1822 | 1822 |
1823 $B%U%C%/%Q%i%a!<%?$O%U%C%/$K4D6-JS%9%H$7$FEO$5$l$k!%3F!9$N4D6-JQ?tL>$OBgJ8(B | 1823 $B%U%C%/%Q%i%a!<%?$O%U%C%/$K4D6-JQ?t$H$7$FEO$5$l$k!%3F!9$N4D6-JQ?tL>$OBgJ8(B |
1824 $B;z$KJQ49$5$l!$@\F,<-(B``\texttt{HG\_}''$B$,IU$1$i$l$k!%Nc$($P(B | 1824 $B;z$KJQ49$5$l!$@\F,<-(B``\texttt{HG\_}''$B$,IU$1$i$l$k!%Nc$($P(B |
1825 ``\texttt{node}''$B$H$$$&%Q%i%a!<%?$,;H$o$l$?$H$9$k$H!$$3$N%Q%i%a!<%?$rI=(B | 1825 ``\texttt{node}''$B$H$$$&%Q%i%a!<%?$,;H$o$l$?$H$9$k$H!$$3$N%Q%i%a!<%?$rI=(B |
1826 $B$94D6-JQ?tL>$O(B``\texttt{HG\_NODE}''$B$H$J$k!%(B | 1826 $B$94D6-JQ?tL>$O(B``\texttt{HG\_NODE}''$B$H$J$k!%(B |
1827 | 1827 |
1828 %A boolean parameter is represented as the string ``\texttt{1}'' for | 1828 %A boolean parameter is represented as the string ``\texttt{1}'' for |
2176 %to a repository. For example, you could use this to ``freeze'' a | 2176 %to a repository. For example, you could use this to ``freeze'' a |
2177 %server-hosted branch temporarily or permanently so that users cannot | 2177 %server-hosted branch temporarily or permanently so that users cannot |
2178 %push to it, while still allowing a local administrator to modify the | 2178 %push to it, while still allowing a local administrator to modify the |
2179 %repository. | 2179 %repository. |
2180 | 2180 |
2181 $B$3$N%U%C%/$r;H$C$F!$30It$NJQ99$,%j%]%8%H%j$K$D$$$+$5$l$J$$$h$&$K$9$k$3$H(B | 2181 $B$3$N%U%C%/$r;H$C$F!$30It$NJQ99$,%j%]%8%H%j$KDI2C$5$l$J$$$h$&$K$9$k$3$H(B |
2182 $B$b$G$-$k!%Nc$($P!$$3$N%U%C%/$r%5!<%P$GDs6!$5$l$k%V%i%s%A$r0l;~E*$^$?$O1J(B | 2182 $B$b$G$-$k!%Nc$($P!$$3$N%U%C%/$r%5!<%P$GDs6!$5$l$k%V%i%s%A$r0l;~E*$^$?$O1J(B |
2183 $BB3E*$K(B``$BE`7k(B''$B$7!$%m!<%+%k$J4IM}<T$O%j%]%8%H%j$rJQ99$G$-$k$,!$%j%b!<%H(B | 2183 $BB3E*$K(B``$BE`7k(B''$B$7!$%m!<%+%k$J4IM}<T$O%j%]%8%H%j$rJQ99$G$-$k$,!$%j%b!<%H(B |
2184 $B%f!<%6$O$=$N%j%]%8%H%j$K(Bpush$B$G$-$J$$$h$&$K$G$-$k!%(B | 2184 $B%f!<%6$O$=$N%j%]%8%H%j$K(Bpush$B$G$-$J$$$h$&$K$G$-$k!%(B |
2185 | 2185 |
2186 %Parameters to this hook: | 2186 %Parameters to this hook: |
2310 %\item[\texttt{node}] A changeset ID. The ID of the changeset to be tagged. | 2310 %\item[\texttt{node}] A changeset ID. The ID of the changeset to be tagged. |
2311 %\item[\texttt{tag}] A string. The name of the tag to be created. | 2311 %\item[\texttt{tag}] A string. The name of the tag to be created. |
2312 %\end{itemize} | 2312 %\end{itemize} |
2313 | 2313 |
2314 \begin{itemize} | 2314 \begin{itemize} |
2315 \item[\texttt{local}] $B%V!<%kCM!%?7$7$$%?%0$,%j%]%8%H%j%m!<%+%k$J$b$N(B | 2315 \item[\texttt{local}] $B%V!<%kCM!%?7$7$$%?%0$,8=:_$N%j%]%8%H%j$K%m!<%+%k$J(B |
2316 (\sfilename{.hg/localtags}$B$KJ]B8$5$l$k(B)$B$+(BMercurial$B$K4IM}(B | 2316 $B$b$N(B(\sfilename{.hg/localtags}$B$KJ]B8$5$l$k(B)$B$+(BMercurial$B$G%0%m!<(B |
2317 $B$5$l$k$b$N(B(\sfilename{.hgtags}$B$KJ]B8$5$l$k(B)$B$+$r<($9!%(B | 2317 $B%P%k$K4IM}$5$l$k$b$N(B(\sfilename{.hgtags}$B$KJ]B8$5$l$k(B)$B$+$r<((B |
2318 $B$9!%(B | |
2318 \item[\texttt{node}] $B%A%'%s%8%;%C%H(BID$B!%%?%0IU$1$5$l$k%A%'%s%8%;%C%H$N(BID. | 2319 \item[\texttt{node}] $B%A%'%s%8%;%C%H(BID$B!%%?%0IU$1$5$l$k%A%'%s%8%;%C%H$N(BID. |
2319 \item[\texttt{tag}] $BJ8;zNs!%@8@.$5$l$?%?%0$NL>A0!%(B | 2320 \item[\texttt{tag}] $BJ8;zNs!%@8@.$5$l$?%?%0$NL>A0!%(B |
2320 \end{itemize} | 2321 \end{itemize} |
2321 | 2322 |
2322 %If the tag to be created is revision-controlled, the \hook{precommit} | 2323 %If the tag to be created is revision-controlled, the \hook{precommit} |
2522 %\item[\texttt{tag}] A string. The name of the tag that was created. | 2523 %\item[\texttt{tag}] A string. The name of the tag that was created. |
2523 %\end{itemize} | 2524 %\end{itemize} |
2524 | 2525 |
2525 $B$3$N%U%C%/$X$N%Q%i%a!<%?!'(B | 2526 $B$3$N%U%C%/$X$N%Q%i%a!<%?!'(B |
2526 \begin{itemize} | 2527 \begin{itemize} |
2527 \item[\texttt{local}] $B%V!<%kCM!%?7$7$$%?%0$,%j%]%8%H%j%m!<%+%k$J$b$N(B | 2528 \item[\texttt{local}] $B%V!<%kCM!%?7$7$$%?%0$,8=:_$N%j%]%8%H%j$K%m!<%+%k$J(B |
2528 (\sfilename{.hg/localtags}$B$KJ]B8$5$l$k(B)$B$+(BMercurial$B$K4IM}(B | 2529 $B$b$N(B(\sfilename{.hg/localtags}$B$KJ]B8$5$l$k(B)$B$+(BMercurial$B$K%0%m!<(B |
2529 $B$5$l$k$b$N(B(\sfilename{.hgtags}$B$KJ]B8$5$l$k(B)$B$+$r<($9!%(B | 2530 $B%P%k$K4IM}$5$l$k$b$N(B(\sfilename{.hgtags}$B$KJ]B8$5$l$k(B)$B$+$r<((B |
2531 $B$9!%(B | |
2530 \item[\texttt{node}] $B%A%'%s%8%;%C%H(BID$B!%%?%0IU$1$5$l$k%A%'%s%8%;%C%H$N(BID. | 2532 \item[\texttt{node}] $B%A%'%s%8%;%C%H(BID$B!%%?%0IU$1$5$l$k%A%'%s%8%;%C%H$N(BID. |
2531 \item[\texttt{tag}] $BJ8;zNs!%@8@.$5$l$?%?%0$NL>A0!%(B | 2533 \item[\texttt{tag}] $BJ8;zNs!%@8@.$5$l$?%?%0$NL>A0!%(B |
2532 \end{itemize} | 2534 \end{itemize} |
2533 | 2535 |
2534 %If the created tag is revision-controlled, the \hook{commit} hook | 2536 %If the created tag is revision-controlled, the \hook{commit} hook |