annotate ja/examples/ch04/resolve @ 802:de4142983445

Propagate 3b640272a966 Progres on resolve
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 21 Jun 2009 09:20:47 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
802
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
1 #$ name: init
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
2 hg init conflict
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
3 cd conflict
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
4 echo first > myfile.txt
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
5 hg ci -A -m first
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
6 cd ..
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
7 hg clone conflict left
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
8 hg clone conflict right
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
9
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
10 #$ name: left
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
11 cd left
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
12 echo left >> myfile.txt
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
13 hg ci -m left
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
14
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
15 #$ name: right
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
16 cd ../right
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
17 echo right >> myfile.txt
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
18 hg ci -m right
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
19
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
20 #$ name: pull
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
21 cd ../conflict
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
22 hg pull -u ../left
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
23 hg pull -u ../right
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
24
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
25 #$ name: heads
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
26 hg heads
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
27
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
28 #$ name: export
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
29 export HGMERGE=merge
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
30
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
31 #$ name: merge
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
32 hg merge
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
33
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
34 #$ name: cifail
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
35 hg commit -m 'Attempt to commit a failed merge'
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
36
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
37 #$ name: list
de4142983445 Propagate 3b640272a966
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents:
diff changeset
38 hg resolve -l