##// END OF EJS Templates
tests: unify test-excessive-merge
Pradeepkumar Gayam -
r11974:ccd581c6 default
parent child Browse files
Show More
@@ -1,46 +1,101
1 #!/bin/sh
1 $ hg init
2
2
3 hg init
3 $ echo foo > a
4 $ echo foo > b
5 $ hg add a b
6
7 $ hg ci -m "test" -d "1000000 0"
8
9 $ echo blah > a
4
10
5 echo foo > a
11 $ hg ci -m "branch a" -d "1000000 0"
6 echo foo > b
12
7 hg add a b
13 $ hg co 0
14 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
8
15
9 hg ci -m "test" -d "1000000 0"
16 $ echo blah > b
17
18 $ hg ci -m "branch b" -d "1000000 0"
19 created new head
20 $ HGMERGE=true hg merge 1
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
22 (branch merge, don't forget to commit)
10
23
11 echo blah > a
24 $ hg ci -m "merge b/a -> blah" -d "1000000 0"
12
25
13 hg ci -m "branch a" -d "1000000 0"
26 $ hg co 1
14
27 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
15 hg co 0
28 $ HGMERGE=true hg merge 2
29 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
30 (branch merge, don't forget to commit)
31 $ hg ci -m "merge a/b -> blah" -d "1000000 0"
32 created new head
16
33
17 echo blah > b
34 $ hg log
35 changeset: 4:f6c172c6198c
36 tag: tip
37 parent: 1:448a8c5e42f1
38 parent: 2:7c5dc2e857f2
39 user: test
40 date: Mon Jan 12 13:46:40 1970 +0000
41 summary: merge a/b -> blah
18
42
19 hg ci -m "branch b" -d "1000000 0"
43 changeset: 3:13d875a22764
20 HGMERGE=true hg merge 1
44 parent: 2:7c5dc2e857f2
21
45 parent: 1:448a8c5e42f1
22 hg ci -m "merge b/a -> blah" -d "1000000 0"
46 user: test
47 date: Mon Jan 12 13:46:40 1970 +0000
48 summary: merge b/a -> blah
23
49
24 hg co 1
50 changeset: 2:7c5dc2e857f2
25 HGMERGE=true hg merge 2
51 parent: 0:dc1751ec2e9d
26 hg ci -m "merge a/b -> blah" -d "1000000 0"
52 user: test
53 date: Mon Jan 12 13:46:40 1970 +0000
54 summary: branch b
55
56 changeset: 1:448a8c5e42f1
57 user: test
58 date: Mon Jan 12 13:46:40 1970 +0000
59 summary: branch a
27
60
28 hg log
61 changeset: 0:dc1751ec2e9d
29 hg debugindex .hg/store/00changelog.i
62 user: test
63 date: Mon Jan 12 13:46:40 1970 +0000
64 summary: test
30
65
31 echo
66 $ hg debugindex .hg/store/00changelog.i
67 rev offset length base linkrev nodeid p1 p2
68 0 0 64 0 0 dc1751ec2e9d 000000000000 000000000000
69 1 64 68 1 1 448a8c5e42f1 dc1751ec2e9d 000000000000
70 2 132 68 2 2 7c5dc2e857f2 dc1751ec2e9d 000000000000
71 3 200 75 3 3 13d875a22764 7c5dc2e857f2 448a8c5e42f1
72 4 275 29 3 4 f6c172c6198c 448a8c5e42f1 7c5dc2e857f2
32
73
33 echo 1
74 revision 1
34 hg manifest --debug 1
75 $ hg manifest --debug 1
35 echo 2
76 79d7492df40aa0fa093ec4209be78043c181f094 644 a
36 hg manifest --debug 2
77 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 b
37 echo 3
78 revision 2
38 hg manifest --debug 3
79 $ hg manifest --debug 2
39 echo 4
80 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 a
40 hg manifest --debug 4
81 79d7492df40aa0fa093ec4209be78043c181f094 644 b
82 revision 3
83 $ hg manifest --debug 3
84 79d7492df40aa0fa093ec4209be78043c181f094 644 a
85 79d7492df40aa0fa093ec4209be78043c181f094 644 b
86 revision 4
87 $ hg manifest --debug 4
88 79d7492df40aa0fa093ec4209be78043c181f094 644 a
89 79d7492df40aa0fa093ec4209be78043c181f094 644 b
41
90
42 echo
91 $ hg debugindex .hg/store/data/a.i
92 rev offset length base linkrev nodeid p1 p2
93 0 0 5 0 0 2ed2a3912a0b 000000000000 000000000000
94 1 5 6 1 1 79d7492df40a 2ed2a3912a0b 000000000000
43
95
44 hg debugindex .hg/store/data/a.i
96 $ hg verify
45
97 checking changesets
46 hg verify
98 checking manifests
99 crosschecking files in changesets and manifests
100 checking files
101 2 files, 5 changesets, 4 total revisions
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now