comparison en/ch04-daily.xml @ 753:1c13ed2130a7

Merge with http://hg.serpentine.com/mercurial/book
author Dongsheng Song <dongsheng.song@gmail.com>
date Mon, 30 Mar 2009 16:23:33 +0800
parents 7e7c47481e4f 4ce9d0754af3
children b338f5490029
comparison
equal deleted inserted replaced
752:6b1577ef5135 753:1c13ed2130a7
1 <!-- vim: set filetype=docbkxml shiftwidth=2 autoindent expandtab tw=77 : --> 1 <!-- vim: set filetype=docbkxml shiftwidth=2 autoindent expandtab tw=77 : -->
2 2
3 <chapter id="chap.daily"> 3 <chapter id="chap:daily">
4 <?dbhtml filename="mercurial-in-daily-use.html"?> 4 <?dbhtml filename="mercurial-in-daily-use.html"?>
5 <title>Mercurial in daily use</title> 5 <title>Mercurial in daily use</title>
6 6
7 <sect1> 7 <sect1>
8 <title>Telling Mercurial which files to track</title> 8 <title>Telling Mercurial which files to track</title>
272 into its copy, <filename>new-file</filename>.</para> 272 into its copy, <filename>new-file</filename>.</para>
273 273
274 &interaction.daily.copy.merge; 274 &interaction.daily.copy.merge;
275 275
276 </sect2> 276 </sect2>
277 <sect2 id="sec.daily.why-copy"> 277 <sect2 id="sec:daily:why-copy">
278 <title>Why should changes follow copies?</title> 278 <title>Why should changes follow copies?</title>
279 279
280 <para id="x_1c4">This behaviour, of changes to a file propagating out to 280 <para id="x_1c4">This behaviour, of changes to a file propagating out to
281 copies of the file, might seem esoteric, but in most cases 281 copies of the file, might seem esoteric, but in most cases
282 it's highly desirable.</para> 282 it's highly desirable.</para>
326 automatically propagating changes across copies is not for 326 automatically propagating changes across copies is not for
327 you, simply use your system's normal file copy command (on 327 you, simply use your system's normal file copy command (on
328 Unix-like systems, that's <command>cp</command>) to make a 328 Unix-like systems, that's <command>cp</command>) to make a
329 copy of a file, then <command role="hg-cmd">hg add</command> 329 copy of a file, then <command role="hg-cmd">hg add</command>
330 the new copy by hand. Before you do so, though, please do 330 the new copy by hand. Before you do so, though, please do
331 reread section <xref linkend="sec.daily.why-copy"/>, and make 331 reread <xref linkend="sec:daily:why-copy"/>, and make
332 an informed 332 an informed
333 decision that this behaviour is not appropriate to your 333 decision that this behaviour is not appropriate to your
334 specific case.</para> 334 specific case.</para>
335 335
336 </sect2> 336 </sect2>
527 revert</command> command is useful for changes that you have 527 revert</command> command is useful for changes that you have
528 not yet committed. Once you've committed a change, if you 528 not yet committed. Once you've committed a change, if you
529 decide it was a mistake, you can still do something about it, 529 decide it was a mistake, you can still do something about it,
530 though your options may be more limited.</para> 530 though your options may be more limited.</para>
531 531
532 <para id="x_1e5">For more information about the <command role="hg-cmd">hg 532 <para id="x_1e5">For more information about the <command
533 revert</command> command, and details about how to deal with 533 role="hg-cmd">hg revert</command> command, and details about
534 changes you have already committed, see chapter <xref 534 how to deal with changes you have already committed, see <xref
535 linkend="chap.undo"/>.</para> 535 linkend="chap:undo"/>.</para>
536 536
537 </sect1> 537 </sect1>
538 </chapter> 538 </chapter>
539 539
540 <!-- 540 <!--