Source

hgbook-gu / ja / filenames.tex

Full commit
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
\chapter{File names and pattern matching}
\label{chap:names}

Mercurial $B$O!"(B
$B0l4S@-$HI=8=NO$r7s$MHw$($?J}K!$G%U%!%$%kL>$r07$&;EAH$_$rDs6!$7$F$$$^$9!#(B

\section{Simple file naming}

Mercurial $B$O(B
``under the hood''$B$K$*$$$F!"(B
$B%U%!%$%kL>$r<h$j07$&E}0l$5$l$?;EAH$_$rMQ$$$F$$$^$9!#(B
$B%U%!%$%kL>$K4X$9$kA4$F$N%3%^%s%I$N5sF0$OE}0l$5$l$F$$$^$9!#(B
$B%U%!%$%kL>$KBP$9$k%3%^%s%I$N5sF0$O!"0J2<$N$h$&$K$J$C$F$$$^$9!#(B

$B%3%^%s%I9T$G<B%U%!%$%kL>$rL@<(E*$K;XDj$7$?>l9g!"(B
Mercurial $B$O;XDj$5$l$?%U%!%$%kL>$K87L)$K:nMQ$7$^$9!#(B

\interaction{filenames.files}

$B%G%#%l%/%H%jL>$r;XDj$7$?>l9g!"(B
Mercurial $B$O$=$N;XDj$r!"(B
``$BEv3:%G%#%l%/%H%j$J$i$S$K%5%V%G%#%l%/%H%jCf$NA4$F$N%U%!%$%k(B''
$B$H$_$J$7$^$9!#(B
Mercurial $B$OEv3:%G%#%l%/%H%jG[2<$N%U%!%$%k!&%5%V%G%#%l%/%H%j$r!"(B
$B%"%k%U%!%Y%C%H=g$KAv::$7$^$9!#(B
$B$"$k%G%#%l%/%H%j$NAv::Cf$K%5%V%G%#%l%/%H%j$KAx6x$7$?>l9g!"(B
$BEv3:%G%#%l%/%H%j$NAv::$h$j$b@h$K!"(B
$B%5%V%G%#%l%/%H%j$NAv::$r<B;\$7$^$9(B\footnote{$BLuCm(B: $B?<$5M%@h!J(Bdepth first$B!K(B}$B!#(B

\interaction{filenames.dirs}

\section{Running commands without any file names}

$B%U%!%$%kL>$r0z?t$K<h$k(B Mercurial $B%3%^%s%I$O!"(B
$B0z?t$J$$$7%Q%?!<%s;XDjL5$7$G5/F0$5$l$?>l9g$b!"(B
$BM-MQ$J4pDl;~F0:n$,Dj$a$i$l$F$$$^$9!#(B
$B%3%^%s%I$K4|BT$5$l$k?6$kIq$$$O!"(B
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$rKI$$$G$$$k!"(B
$B$H$$$&E@$KCm0U$7$F$/$@$5$$!#(B

\subsection{Shell-style \texttt{glob} patterns}

\texttt{glob} $B7A<0$K$h$k%^%C%A%s%0$N:]$K!"(B
$B;HMQ2DG=$J%Q%?!<%s$K$D$$$F$N35MW$r0J2<$K<($7$^$9!#(B

$B%Q%?!<%s(B ``\texttt{*}'' $B$O!"(B
$BF10l%G%#%l%/%H%jFb$GG$0U$NJ8;zNs$K9gCW$7$^$9!#(B

\interaction{filenames.glob.star}

$B%Q%?!<%s(B ``\texttt{**}'' $B$O!"(B
$B%G%#%l%/%H%j6-3&$rD6$($FG$0U$NJ8;zNs$K9gCW$7$^$9!#(B
$B$3$N%Q%?!<%s$O(B Unix $B$K$*$1$kI8=`E*$J$b$N$G$O$"$j$^$;$s$,!"(B
$B4v$D$+$NCxL>$J%7%'%k<BAu$G:NMQ$5$l$F$*$j!"(B
$BHs>o$KJXMx$G$9!#(B

\interaction{filenames.glob.starstar}

$B%Q%?!<%s(B ``\texttt{?}'' $B$O!"(B
$BC10l$NJ8;z$K9gCW$7$^$9!#(B

\interaction{filenames.glob.question}

$B%Q%?!<%s(B ``\texttt{[}'' $B$O!"(B
\emph{$BJ8;z=89g(B}$B!J(Bcharacter class$B!K$N3+;O$r0UL#$7$^$9!#(B
$B$3$N%Q%?!<%s$OEv3:=89g$KB0$9$kG$0U$N0lJ8;z$K9gCW$7$^$9!#(B
$B=89g;XDj$O(B ``\texttt{]}'' $B$K$h$C$F=*N;$7$^$9!#(B
$B=89g;XDj$K$O!"(B
``\texttt{abcdef}'' $B$N>JN,;XDj$G$"$k(B
``\texttt{a-f}'' $B7A<0$N(B\emph{$BHO0O(B}$B;XDj$r!"(B
$BJ#?t4^$a$k$3$H$,2DG=$G$9!#(B

\interaction{filenames.glob.range}

$BJ8;z=89g;XDj$K$*$$$F(B
``\texttt{[}'' $B$ND>8e$NJ8;z$,(B ``\texttt{!}'' \footnote{$BLuCm(B:
$B@55,I=8=$K$*$1$k(B ``\texttt{\^}'' $B$K$h$kH?E>$H0[$J$kE@$KCm0U(B}$B$N>l9g!"(B
$B=89g;XDj$O(B\emph{$BH?E>(B}$B$5$l!"(B
$B=89g$KB0$5$J$$G$0U$N0lJ8;z$K9gCW$7$^$9!#(B

$B%Q%?!<%s(B ``\texttt{\{}'' $B$O%5%V%Q%?!<%s$N%0%k!<%W2=$N3+;O$r0UL#$7!"(B
$B%0%k!<%WCf$N2?$l$+$N%5%V%Q%?!<%s$,9gCW$7$?>l9g$O!"(B
$B%0%k!<%WA4BN$,9gCW$7$?$b$N$H$_$J$5$l$^$9!#(B
$B%0%k!<%W;XDj$K$*$1$k%5%V%Q%?!<%s$N6h@Z$j$K$O(B
``\texttt{,}'' $B$,;HMQ$5$l!"(B
``\texttt{\}}'' $B$,%0%k!<%W$N=*N;$r0UL#$7$^$9!#(B

\interaction{filenames.glob.group}

\subsubsection{Watch out!}

$BG$0U$N%G%#%l%/%H%j$K$*$1$k%Q%?!<%s9gCW$,I,MW$J>l9g$O!"(B
$BC10l%G%#%l%/%H%jFb$G$N%^%C%A%s%0$7$+9T$o$J$$(B
``\texttt{*}'' $B$r;HMQ$9$Y$-$G$OL5$$!"(B
$B$H$$$&E@$OK:$l$J$$$h$&$K$7$F$/$@$5$$!#(B
``\texttt{*}'' $B$NBe$o$j$K(B ``\texttt{**}'' $B$r;HMQ$7$^$7$g$&!#(B
$BN><T$N0c$$$r0J2<$G@bL@$7$^$9!#(B

\interaction{filenames.glob.star-starstar}

\subsection{Regular expression matching with \texttt{re} patterns}

Mercurial $B$O!J(BPython $B$NFbItE*$J@55,I=8=%(%s%8%s$rMxMQ$7$F$$$k$N$G!K(B
Python $B$,<u$1IU$1$k$N$HF1$8@55,I=8=$r<u$1IU$1$^$9!#(B
$B$3$N@55,I=8=$O(B Perl $B$N@55,I=8=J8K!$r4p$K$7$F$*$j!"(B
$B:G$bB?MQ$5$l$F$$$k!JNc$($P(B Java $B$G$b;HMQ$5$l$F$$$^$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!"(B
$B%Q%?!<%s$N5-=R$r(B ``\texttt{.*}'' $B$G;O$a$kI,MW$,$"$j$^$9!#(B

\section{Filtering files}

Mercurial $B$,B?MM$JJ}K!$rDs6!$7$F$$$k$b$N$O!"(B
$B%U%!%$%k$N;XDjJ}K!$@$1$G$O$"$j$^$;$s!#(B
Mercurial $B$O(B\emph{$B%U%#%k%?(B}$B$K$h$k%U%!%$%kA*JL$N5!G=$bDs6!$7$F$$$^$9!#(B
$B%U%!%$%kL>;XDj$r<u$1IU$1$k%3%^%s%I$O!"(B
$B0J2<$N#2$D$N%U%#%k%?%j%s%0%*%W%7%g%s$b<u$1IU$1$^$9!#(B

\begin{itemize}
\item \hggopt{-I} $B$J$$$7(B \hggopt{--include} $B$K$h$j!"(B
  $B9gCW$7$?%U%!%$%k$N$_$r=hM}BP>]$H$_$J$9%Q%?!<%s$r;XDj$G$-$^$9!#(B

\item \hggopt{-X} $B$J$$$7(B \hggopt{--exclude} $B$K$h$j!"(B
  $B9gCW$7$?%U%!%$%k$r=hM}BP>]$+$i(B\emph{$B=|30(B}$B$9$k%Q%?!<%s$r;XDj$G$-$^$9!#(B

\end{itemize}

$BJ#?t$N(B \hggopt{-I} $B$*$h$S(B \hggopt{-X} $B%*%W%7%g%s$r!"(B
$B%3%^%s%I9T$G9%$-$J$h$&$K:.:_$5$;$k$3$H$,$G$-$^$9!#(B
Mercurial $B$N4pDlF0$O!"(B
$B;XDj$5$l$?%Q%?!<%s$r(B ``\texttt{glob}'' $B7A<0$H$_$J$7$F2r<a$7$^$9(B
$B!JI,MW$G$"$l$PL@<(E*$K(B ``\texttt{glob}'' $B$r;XDj$9$k$3$H$b2DG=$G$9!K!#(B

\hggopt{-I} $B%U%#%k%?$O!"(B
``$B9gCW$7$?%U%!%$%k$N$_$r=hM}BP>]$H$9$k(B''
$B$b$N$H2r<a$9$l$PNI$$$G$7$g$&!#(B

\interaction{filenames.filter.include}

\hggopt{-X} $B%U%#%k%?$O!"(B
``$B9gCW$7$J$$$b$N$r=hM}BP>]$H$9$k(B''
$B$b$N$H2r<a$9$k$3$H$,$G$-$^$9!#(B

\interaction{filenames.filter.exclude}

\section{Ignoring unwanted files and directories}

$B"((B $B86J8L$9F(B

\section{Case sensitivity}
\label{sec:names:case}

Linux$B!J$J$$$7B>$N(B Unix $B7O(B OS$B!K$H!"(B
MacOS $B$J$$$7(B Windows $B$,:.:_$9$k3+H/4D6-$G:n6H$9$k>l9g!"(B
$B%U%!%$%kL>$K$*$1$kJ8;z$NBg>.!J(B``N'' $B$H(B ``n''$B!K$N07$$J}?K$,A4$/0[$J$k!"(B
$B$H$$$&CN<1$r?4$KN1$a$F$*$/I,MW$,$"$j$^$9!#(B
$BNI$/$"$k;v$G$OL5$$$+$b$7$l$^$;$s$7!"(B
$BMF0W$K2r7h$G$-$k2DG=@-$b$"$j$^$9$,!"(B
$BCN$i$J$$>u67$GAx6x$7$?>l9g!"(B
$BHs>o$K6C$+$5$l$kLdBj$G$b$"$j$^$9!#(B

OS $B$*$h$S%U%!%$%k%7%9%F%`$K1~$8$F!"(B
$B%U%!%$%k$*$h$S%G%#%l%/%H%jL>$N(B\emph{$BJ8;z$NBg>.(B}$B$N07$$$O0[$J$j$^$9!#(B
$BL>A0$K$*$1$kJ8;z$NBg>.$N0lHLE*$J07$$J}$r!"(B
$B0J2<$K#3$D<($7$^$9!#(B

\begin{itemize}
\item $B40A4$KJ8;z$NBg>.$rL5;k(B:
  $B%U%!%$%k$N@8@.$*$h$S$=$N8e$N07$$$K$*$$$F!"(B
  $BJ8;z$NBgJ8;z!&>.J8;z$OF1$8$b$N$H$7$F07$o$l$^$9!#(B
  $B8E$$(B DOS $BIw$N%7%9%F%`$G0lHLE*$J07$$J}$G$9!#(B

\item $BJ8;z$NBg>.$OJ];}$5$l$k$,L5;k(B:
  $B%U%!%$%k$J$$$7%G%#%l%/%H%j@8@.$N:]$K$O!"(B
  $BL>A0$K$*$1$kJ8;z$NBg>.$OJ]B8$5$l!"(B
  OS $B$K$h$k8!:w$dI=<($,2DG=$G$9!#(B
  $BB8:_$9$k%U%!%$%k$,8!:w$5$l$k>l9g!"J8;z$NBg>.$OL5;k$5$l$^$9!#(B
  Windows $B$d(B MacOS $B$G$OI8=`E*$J;EMM$G$9!#(B
  \filename{foo} $B$H(B \filename{FoO} $B$OF1$8%U%!%$%k$H$_$J$5$l$^$9!#(B
  $BBgJ8;z$H>.J8;z$N8_49@-$"$k07$$$O!"(B
  \emph{$B%1!<%9%U%)!<%k%G%#%s%0(B}$B!J(Bcase folding$B!K$H$b8F$P$l$^$9!#(B

\item $BJ8;z$NBg>.$r6hJL(B:
  $BL>A0$K$*$1$kJ8;z$NBg>.$O>o$K0UL#$r;}$A$^$9!#(B
  \filename{foo} $B$H(B \filename{FoO} $B$O0[$J$k%U%!%$%k$H$7$F6hJL$5$l$^$9!#(B
  $B$3$l$O(B Linux $B$d(B Unix $B$K$*$1$kDL>o$N?6$kIq$$$G$9!#(B

\end{itemize}

Unix $BE*$J%7%9%F%`$N>e$G$O!"(B
$B>e5-$NBgJ8;z!&>.J8;z$N<h$j07$$7A<0$N$&$A$N(B``$BG$0U(B''$B$N$b$N$,(B
$B!J$"$k$$$OA4$F$,F1;~$K!KMW5a$5$l$k2DG=@-$,$"$j$^$9!#(B
$BNc$($P!"(B
FAT32 $B%U%!%$%k%7%9%F%`$G%U%)!<%^%C%H$5$l$?(B
USB $B>.7?%a%b%j%b%8%e!<%k$r(B Linux $B$G;HMQ$9$k>l9g!"(B
$B$=$N%U%!%$%k%7%9%F%`>e$G$N(B Linux $B$N?6$kIq$$$O!"(B
$BJ8;z$NBg>.$OJ];}$7$D$DL5;k$9$k$b$N$H$J$j$^$9!#(B

\subsection{Safe, portable repository storage}

Mercurial $B$N%j%]%8%H%j3JG<5!G=$O!"(B
$BJ8;zBg>.$N6hJL$N2DH]$K(B\emph{$B1F6A$r<u$1$^$;$s(B}$B!#(B
$B%j%]%8%H%j$NJ]B8@h%U%!%$%kL>$O85%U%!%$%kL>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%/%H%j$K$*$$$F$b!"(B
$B$3$l$i$N%U%!%$%k$O0[$J$k%U%!%$%k$H$7$F@5$7$/B8:_$7$^$9!#(B

Mercurial $B$N%j%]%8%H%j3JG<5!9=$,J8;zBg>.$N07$$$N2DH]$K1F6A$r<u$1$J$$$?$a!"(B
Windows $B$J$$$7(B MacOS $BMxMQ<T$,$3$NJQ99$r<h$j9~$s$G$b!"(B
$B:G=i$OLdBj$,H/@8$7$^$;$s!#(B
$B$7$+$7!"(B
$B:n6HNN0h%G%#%l%/%H%j$rEv3:%A%'%s%8%;%C%H$G(B \hgcmd{update}
$B$7$h$&$H$7$?>l9g!"(B
$B$"$k$$$OEv3:%A%'%s%8%;%C%H$H(B
\hgcmd{merge} $B$7$h$&$H$7$?>l9g!"(B
$B%U%!%$%k%7%9%F%`$,F1$8%U%!%$%k$H$7$F07$&#2$D$N%U%!%$%k$N>WFM$r8+$D$1$?(B
Mercurial $B$K$h$C$F!"(B
\hgcmd{update} $B$J$$$7(B \hgcmd{merge} $B$O6X;_$5$l$^$9!#(B

\subsection{Fixing a case conflict}

$BB>$N%a%s%P!<$,(B Linux $B$d(B Unix $B$r;HMQ$7$F$$$k:.:_4D6-$G(B
Windows $B$J$$$7(B MacOS $B$r;HMQ$7$F$$$F!"(B
\hgcmd{update} $B$"$k$$$O(B \hgcmd{merge} $B$N:]$K(B
Mercurial $B$,J8;zBg>.$N>WFM$rJs9p$9$k>l9g!"(B
$BLdBj$N2r7h<j=g$O4JC1$G$9!#(B

$B<j6a$J(B Linux $B$J$$$7(B Unix $BMxMQ<T$rC5$7!"(B
$BLdBj$N%j%]%8%H%j$r(B \hgcmd{clone} $B$7$F$+$i!"(B
$BLdBj$N%U%!%$%k$J$$$7%G%#%l%/%H%j$rBgJ8;z>.J8;z$N>WFM$,H/@8$7$J$$$h$&$K!"(B
Mercurial $B$N(B \hgcmd{rename} $B%3%^%s%I$G2~L>$r$9$l$PNI$$$N$G$9!#(B
$B$=$N8e!"(B
$BJQ99$r%3%_%C%H$7!"(B
\hgcmd{pull} $B$J$$$7(B \hgcmd{push} $B$G(B
Windows $B$d(B MacOS $B$KJQ99$r<h$j9~$_!"(B
\hgcmd{update} $B$K$h$C$F>WFM$7$J$$L>A0$GJQ99FbMF$r<h$j=P$7$^$9!#(B

$BBgJ8;z>.J8;z$N>WFM$r@8$8$5$;$k%A%'%s%8%;%C%H$=$N$b$N$O!"(B
$B%W%m%8%'%/%H$NMzNr$K;D$C$F$*$j!"(B
$BEv3:%A%'%s%8%;%C%H$r(B Windows $B$d(B
MacOS $B>e$G:n6HNN0h%G%#%l%/%H%j$K<h$j=P$9$3$H$O$G$-$^$;$s$,!"(B
$B3+H/$r7QB3$9$k$3$H$O2DG=$G$9(B\footnote{$BLuCm(B:
$BJ8;z$NBg>.$H$O4X78$"$j$^$;$s$,!"(B
Windows $B$O(B ``\texttt{con}'' $B$d(B
``\texttt{aux}'' $B$,FCJL07$$$5$l$k$?$a!"(B
$BNc$($P$3$l$i$NL>A0$rMxMQ$7$?%G%#%l%/%H%j$,$"$k>l9g$J$I$O!"(B
$B%j%]%8%H%j$N(B \hgcmd{pull} $B$=$N$b$N$,$G$-$^$;$s!#(B}$B!#(B

\begin{note}
  0.9.3 $BHG0JA0$N(B Mercurial $B$O!"(B
  $BBgJ8;z>.J8;z$K1F6A$r<u$1$J$$%j%]%8%H%j3JG<5!9=$b!"(B
  $BBgJ8;z>.J8;z$NL>A0>WFM8!CN5!G=$b$"$j$^$;$s$G$7$?!#(B
  Mercurial $B$N5lHG$r(B Windows $B$d(B MacOS $B$G;HMQ$7$F$$$k>l9g!"(B
  Mercurial $B$N99?7$r$*A&$a$7$^$9!#(B
\end{note}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "00book"
%%% End: