annotate ja/examples/tour-merge-conflict @ 776:019040fbf5f5

merged to upstream: phase 1
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 21 Apr 2009 00:36:40 +0900
parents en/examples/tour-merge-conflict@4e23c220d1b0 en/examples/tour-merge-conflict@b0db5adf11c1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 #!/bin/bash
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
3 hg init scam
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
4 cd scam
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6 #$ name: wife
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
7
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
8 cat > letter.txt <<EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
9 Greetings!
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
10
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
11 I am Mariam Abacha, the wife of former
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 Nigerian dictator Sani Abacha.
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
13 EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
14
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
15 hg add letter.txt
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
16 hg commit -m '419 scam, first draft'
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
17
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
18 #$ name: cousin
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
19
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
20 cd ..
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
21 hg clone scam scam-cousin
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
22 cd scam-cousin
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
23
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
24 cat > letter.txt <<EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
25 Greetings!
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
26
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
27 I am Shehu Musa Abacha, cousin to the former
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
28 Nigerian dictator Sani Abacha.
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
29 EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
30
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
31 hg commit -m '419 scam, with cousin'
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
32
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
33 #$ name: son
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
34
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
35 cd ..
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
36 hg clone scam scam-son
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
37 cd scam-son
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
38
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
39 cat > letter.txt <<EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
40 Greetings!
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
41
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
42 I am Alhaji Abba Abacha, son of the former
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
43 Nigerian dictator Sani Abacha.
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
44 EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
45
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
46 hg commit -m '419 scam, with son'
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
47
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
48 #$ name: pull
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
49
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
50 cd ..
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
51 hg clone scam-cousin scam-merge
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
52 cd scam-merge
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
53 hg pull -u ../scam-son
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
54
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
55 #$ name: merge
139
ceaca14e49f0 Add local regexps to ignore bits of output.
Bryan O'Sullivan <bos@serpentine.com>
parents: 103
diff changeset
56 #$ ignore: [<>]{7} /tmp/.*
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
57
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
58 export HGMERGE=merge
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
59 hg merge
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
60 cat letter.txt
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
61
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
62 #$ name: commit
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
63
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
64 cat > letter.txt <<EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
65 Greetings!
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
66
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
67 I am Bryan O'Sullivan, no relation of the former
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
68 Nigerian dictator Sani Abacha.
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
69 EOF
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
70
401
e281bd9a8e47 Fix sample output for test 'tour-merge-conflict'.
Guido Ostkamp <hg@ostkamp.fastmail.fm>
parents: 139
diff changeset
71 hg resolve -m letter.txt
103
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
72 hg commit -m 'Send me your money'
5b80c922ebdd More merge content.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
73 hg tip