hgbook
view en/examples/results/mq.dodiff.diff.out @ 648:e0ac2341a861
Fix building error introduced by bos at rev 8366882f67f2
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Wed Mar 18 21:50:57 2009 +0800 (2009-03-18) |
parents | 44d1363234d2 |
children | 4432ad34b8e5 |
line source
1 <screen><prompt>$</prompt> <userinput>echo 'this is my original thought' > oldfile</userinput>
2 <prompt>$</prompt> <userinput>echo 'i have changed my mind' > newfile</userinput>
3 <prompt>$</prompt> <userinput>diff -u oldfile newfile > tiny.patch</userinput>
4 <prompt>$</prompt> <userinput>cat tiny.patch</userinput>
7 @@ -1 +1 @@
8 -this is my original thought
9 +i have changed my mind
10 <prompt>$</prompt> <userinput>patch < tiny.patch</userinput>
11 patching file oldfile
12 <prompt>$</prompt> <userinput>cat oldfile</userinput>
13 i have changed my mind
14 </screen>