comparison en/ch06-filenames.xml @ 775:29f0f79cf614

Update paragraph IDs
author Bryan O'Sullivan <bos@serpentine.com>
date Thu, 16 Apr 2009 23:46:45 -0700
parents e6c99cbd0abd
children 477d6a3e5023
comparison
equal deleted inserted replaced
774:e6c99cbd0abd 775:29f0f79cf614
281 build products are output files produced by software tools such 281 build products are output files produced by software tools such
282 as compilers. As another example, many text editors litter a 282 as compilers. As another example, many text editors litter a
283 directory with lock files, temporary working files, and backup 283 directory with lock files, temporary working files, and backup
284 files, which it also makes no sense to manage.</para> 284 files, which it also makes no sense to manage.</para>
285 285
286 <para>To have Mercurial permanently ignore such files, create a 286 <para id="x_6b4">To have Mercurial permanently ignore such files, create a
287 file named <filename>.hgignore</filename> in the root of your 287 file named <filename>.hgignore</filename> in the root of your
288 repository. You <emphasis>should</emphasis> <command>hg 288 repository. You <emphasis>should</emphasis> <command>hg
289 add</command> this file so that it gets tracked with the rest of 289 add</command> this file so that it gets tracked with the rest of
290 your repository contents, since your collaborators will probably 290 your repository contents, since your collaborators will probably
291 find it useful too.</para> 291 find it useful too.</para>
292 292
293 <para>By default, the <filename>.hgignore</filename> file should 293 <para id="x_6b5">By default, the <filename>.hgignore</filename> file should
294 contain a list of regular expressions, one per line. Empty 294 contain a list of regular expressions, one per line. Empty
295 lines are skipped. Most people prefer to describe the files they 295 lines are skipped. Most people prefer to describe the files they
296 want to ignore using the <quote>glob</quote> syntax that we 296 want to ignore using the <quote>glob</quote> syntax that we
297 described above, so a typical <filename>.hgignore</filename> 297 described above, so a typical <filename>.hgignore</filename>
298 file will start with this directive:</para> 298 file will start with this directive:</para>
299 299
300 <programlisting>syntax: glob</programlisting> 300 <programlisting>syntax: glob</programlisting>
301 301
302 <para>This tells Mercurial to interpret the lines that follow as 302 <para id="x_6b6">This tells Mercurial to interpret the lines that follow as
303 glob patterns, not regular expressions.</para> 303 glob patterns, not regular expressions.</para>
304 304
305 <para>Here is a typical-looking <filename>.hgignore</filename> 305 <para id="x_6b7">Here is a typical-looking <filename>.hgignore</filename>
306 file.</para> 306 file.</para>
307 307
308 <programlisting>syntax: glob 308 <programlisting>syntax: glob
309 # This line is a comment, and will be skipped. 309 # This line is a comment, and will be skipped.
310 # Empty lines are skipped too. 310 # Empty lines are skipped too.