Show More
@@ -1,88 +1,106 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | echo % commit date test |
|
3 | echo % commit date test | |
4 | hg init test |
|
4 | hg init test | |
5 | cd test |
|
5 | cd test | |
6 | echo foo > foo |
|
6 | echo foo > foo | |
7 | hg add foo |
|
7 | hg add foo | |
8 | HGEDITOR=true hg commit -m "" |
|
8 | HGEDITOR=true hg commit -m "" | |
9 | hg commit -d '0 0' -m commit-1 |
|
9 | hg commit -d '0 0' -m commit-1 | |
10 | echo foo >> foo |
|
10 | echo foo >> foo | |
11 | hg commit -d '1 4444444' -m commit-3 |
|
11 | hg commit -d '1 4444444' -m commit-3 | |
12 | hg commit -d '1 15.1' -m commit-4 |
|
12 | hg commit -d '1 15.1' -m commit-4 | |
13 | hg commit -d 'foo bar' -m commit-5 |
|
13 | hg commit -d 'foo bar' -m commit-5 | |
14 | hg commit -d ' 1 4444' -m commit-6 |
|
14 | hg commit -d ' 1 4444' -m commit-6 | |
15 | hg commit -d '111111111111 0' -m commit-7 |
|
15 | hg commit -d '111111111111 0' -m commit-7 | |
16 |
|
16 | |||
17 | echo % commit added file that has been deleted |
|
17 | echo % commit added file that has been deleted | |
18 | echo bar > bar |
|
18 | echo bar > bar | |
19 | hg add bar |
|
19 | hg add bar | |
20 | rm bar |
|
20 | rm bar | |
21 | hg commit -d "1000000 0" -m commit-8 |
|
21 | hg commit -d "1000000 0" -m commit-8 | |
22 | hg commit -d "1000000 0" -m commit-8-2 bar |
|
22 | hg commit -d "1000000 0" -m commit-8-2 bar | |
23 |
|
23 | |||
24 | hg -q revert -a --no-backup |
|
24 | hg -q revert -a --no-backup | |
25 |
|
25 | |||
26 | mkdir dir |
|
26 | mkdir dir | |
27 | echo boo > dir/file |
|
27 | echo boo > dir/file | |
28 | hg add |
|
28 | hg add | |
29 | hg -v commit -d '0 0' -m commit-9 dir |
|
29 | hg -v commit -d '0 0' -m commit-9 dir | |
30 |
|
30 | |||
31 | echo > dir.file |
|
31 | echo > dir.file | |
32 | hg add |
|
32 | hg add | |
33 | hg commit -d '0 0' -m commit-10 dir dir.file |
|
33 | hg commit -d '0 0' -m commit-10 dir dir.file | |
34 |
|
34 | |||
35 | echo >> dir/file |
|
35 | echo >> dir/file | |
36 | mkdir bleh |
|
36 | mkdir bleh | |
37 | mkdir dir2 |
|
37 | mkdir dir2 | |
38 | cd bleh |
|
38 | cd bleh | |
39 | hg commit -d '0 0' -m commit-11 . |
|
39 | hg commit -d '0 0' -m commit-11 . | |
40 | hg commit -d '0 0' -m commit-12 ../dir ../dir2 |
|
40 | hg commit -d '0 0' -m commit-12 ../dir ../dir2 | |
41 | hg -v commit -d '0 0' -m commit-13 ../dir |
|
41 | hg -v commit -d '0 0' -m commit-13 ../dir | |
42 | cd .. |
|
42 | cd .. | |
43 |
|
43 | |||
44 | hg commit -d '0 0' -m commit-14 does-not-exist |
|
44 | hg commit -d '0 0' -m commit-14 does-not-exist | |
45 | ln -s foo baz |
|
45 | ln -s foo baz | |
46 | hg commit -d '0 0' -m commit-15 baz |
|
46 | hg commit -d '0 0' -m commit-15 baz | |
47 | touch quux |
|
47 | touch quux | |
48 | hg commit -d '0 0' -m commit-16 quux |
|
48 | hg commit -d '0 0' -m commit-16 quux | |
49 | echo >> dir/file |
|
49 | echo >> dir/file | |
50 | hg -v commit -d '0 0' -m commit-17 dir/file |
|
50 | hg -v commit -d '0 0' -m commit-17 dir/file | |
51 | cd .. |
|
51 | cd .. | |
52 |
|
52 | |||
53 | echo % partial subdir commit test |
|
53 | echo % partial subdir commit test | |
54 | hg init test2 |
|
54 | hg init test2 | |
55 | cd test2 |
|
55 | cd test2 | |
56 | mkdir foo |
|
56 | mkdir foo | |
57 | echo foo > foo/foo |
|
57 | echo foo > foo/foo | |
58 | mkdir bar |
|
58 | mkdir bar | |
59 | echo bar > bar/bar |
|
59 | echo bar > bar/bar | |
60 | hg add |
|
60 | hg add | |
61 | hg ci -d '1000000 0' -u test -m commit-subdir-1 foo |
|
61 | hg ci -d '1000000 0' -u test -m commit-subdir-1 foo | |
62 | hg ci -d '1000001 0' -u test -m commit-subdir-2 bar |
|
62 | hg ci -d '1000001 0' -u test -m commit-subdir-2 bar | |
63 | echo % subdir log 1 |
|
63 | echo % subdir log 1 | |
64 | hg log -v foo |
|
64 | hg log -v foo | |
65 | echo % subdir log 2 |
|
65 | echo % subdir log 2 | |
66 | hg log -v bar |
|
66 | hg log -v bar | |
67 | echo % full log |
|
67 | echo % full log | |
68 | hg log -v |
|
68 | hg log -v | |
69 | cd .. |
|
69 | cd .. | |
70 |
|
70 | |||
71 | echo % dot and subdir commit test |
|
71 | echo % dot and subdir commit test | |
72 | hg init test3 |
|
72 | hg init test3 | |
73 | cd test3 |
|
73 | cd test3 | |
74 | mkdir foo |
|
74 | mkdir foo | |
75 | echo foo content > foo/plain-file |
|
75 | echo foo content > foo/plain-file | |
76 | hg add foo/plain-file |
|
76 | hg add foo/plain-file | |
77 | hg ci -d '1000000 0' -u test -m commit-foo-subdir foo |
|
77 | hg ci -d '1000000 0' -u test -m commit-foo-subdir foo | |
78 | echo modified foo content > foo/plain-file |
|
78 | echo modified foo content > foo/plain-file | |
79 | hg ci -d '2000000 0' -u test -m commit-foo-dot . |
|
79 | hg ci -d '2000000 0' -u test -m commit-foo-dot . | |
80 | echo % full log |
|
80 | echo % full log | |
81 | hg log -v |
|
81 | hg log -v | |
82 | echo % subdir log |
|
82 | echo % subdir log | |
83 | cd foo |
|
83 | cd foo | |
84 | hg log . |
|
84 | hg log . | |
85 | cd .. |
|
85 | cd .. | |
86 | cd .. |
|
86 | cd .. | |
87 |
|
87 | |||
|
88 | cd .. | |||
|
89 | hg init issue1049 | |||
|
90 | cd issue1049 | |||
|
91 | echo a > a | |||
|
92 | hg ci -Ama | |||
|
93 | echo a >> a | |||
|
94 | hg ci -mb | |||
|
95 | hg up 0 | |||
|
96 | echo b >> a | |||
|
97 | hg ci -mc | |||
|
98 | HGMERGE=true hg merge | |||
|
99 | echo % should fail because we are specifying a file name | |||
|
100 | hg ci -mmerge a | |||
|
101 | echo % should fail because we are specifying a pattern | |||
|
102 | hg ci -mmerge -I a | |||
|
103 | echo % should succeed | |||
|
104 | hg ci -mmerge | |||
|
105 | ||||
88 | exit 0 |
|
106 | exit 0 |
@@ -1,94 +1,105 b'' | |||||
1 | % commit date test |
|
1 | % commit date test | |
2 | transaction abort! |
|
2 | transaction abort! | |
3 | rollback completed |
|
3 | rollback completed | |
4 | abort: empty commit message |
|
4 | abort: empty commit message | |
5 | abort: impossible time zone offset: 4444444 |
|
5 | abort: impossible time zone offset: 4444444 | |
6 | abort: invalid date: '1\t15.1' |
|
6 | abort: invalid date: '1\t15.1' | |
7 | abort: invalid date: 'foo bar' |
|
7 | abort: invalid date: 'foo bar' | |
8 | abort: date exceeds 32 bits: 111111111111 |
|
8 | abort: date exceeds 32 bits: 111111111111 | |
9 | % commit added file that has been deleted |
|
9 | % commit added file that has been deleted | |
10 | nothing changed |
|
10 | nothing changed | |
11 | abort: file bar not found! |
|
11 | abort: file bar not found! | |
12 | adding dir/file |
|
12 | adding dir/file | |
13 | dir/file |
|
13 | dir/file | |
14 | adding dir.file |
|
14 | adding dir.file | |
15 | abort: no match under directory dir! |
|
15 | abort: no match under directory dir! | |
16 | abort: no match under directory .! |
|
16 | abort: no match under directory .! | |
17 | abort: no match under directory ../dir2! |
|
17 | abort: no match under directory ../dir2! | |
18 | dir/file |
|
18 | dir/file | |
19 | does-not-exist: No such file or directory |
|
19 | does-not-exist: No such file or directory | |
20 | abort: file does-not-exist not found! |
|
20 | abort: file does-not-exist not found! | |
21 | abort: file baz not tracked! |
|
21 | abort: file baz not tracked! | |
22 | abort: file quux not tracked! |
|
22 | abort: file quux not tracked! | |
23 | dir/file |
|
23 | dir/file | |
24 | % partial subdir commit test |
|
24 | % partial subdir commit test | |
25 | adding bar/bar |
|
25 | adding bar/bar | |
26 | adding foo/foo |
|
26 | adding foo/foo | |
27 | % subdir log 1 |
|
27 | % subdir log 1 | |
28 | changeset: 0:6ef3cb06bb80 |
|
28 | changeset: 0:6ef3cb06bb80 | |
29 | user: test |
|
29 | user: test | |
30 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
30 | date: Mon Jan 12 13:46:40 1970 +0000 | |
31 | files: foo/foo |
|
31 | files: foo/foo | |
32 | description: |
|
32 | description: | |
33 | commit-subdir-1 |
|
33 | commit-subdir-1 | |
34 |
|
34 | |||
35 |
|
35 | |||
36 | % subdir log 2 |
|
36 | % subdir log 2 | |
37 | changeset: 1:f2e51572cf5a |
|
37 | changeset: 1:f2e51572cf5a | |
38 | tag: tip |
|
38 | tag: tip | |
39 | user: test |
|
39 | user: test | |
40 | date: Mon Jan 12 13:46:41 1970 +0000 |
|
40 | date: Mon Jan 12 13:46:41 1970 +0000 | |
41 | files: bar/bar |
|
41 | files: bar/bar | |
42 | description: |
|
42 | description: | |
43 | commit-subdir-2 |
|
43 | commit-subdir-2 | |
44 |
|
44 | |||
45 |
|
45 | |||
46 | % full log |
|
46 | % full log | |
47 | changeset: 1:f2e51572cf5a |
|
47 | changeset: 1:f2e51572cf5a | |
48 | tag: tip |
|
48 | tag: tip | |
49 | user: test |
|
49 | user: test | |
50 | date: Mon Jan 12 13:46:41 1970 +0000 |
|
50 | date: Mon Jan 12 13:46:41 1970 +0000 | |
51 | files: bar/bar |
|
51 | files: bar/bar | |
52 | description: |
|
52 | description: | |
53 | commit-subdir-2 |
|
53 | commit-subdir-2 | |
54 |
|
54 | |||
55 |
|
55 | |||
56 | changeset: 0:6ef3cb06bb80 |
|
56 | changeset: 0:6ef3cb06bb80 | |
57 | user: test |
|
57 | user: test | |
58 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
58 | date: Mon Jan 12 13:46:40 1970 +0000 | |
59 | files: foo/foo |
|
59 | files: foo/foo | |
60 | description: |
|
60 | description: | |
61 | commit-subdir-1 |
|
61 | commit-subdir-1 | |
62 |
|
62 | |||
63 |
|
63 | |||
64 | % dot and subdir commit test |
|
64 | % dot and subdir commit test | |
65 | % full log |
|
65 | % full log | |
66 | changeset: 1:d9180e04fa8a |
|
66 | changeset: 1:d9180e04fa8a | |
67 | tag: tip |
|
67 | tag: tip | |
68 | user: test |
|
68 | user: test | |
69 | date: Sat Jan 24 03:33:20 1970 +0000 |
|
69 | date: Sat Jan 24 03:33:20 1970 +0000 | |
70 | files: foo/plain-file |
|
70 | files: foo/plain-file | |
71 | description: |
|
71 | description: | |
72 | commit-foo-dot |
|
72 | commit-foo-dot | |
73 |
|
73 | |||
74 |
|
74 | |||
75 | changeset: 0:80b572aaf098 |
|
75 | changeset: 0:80b572aaf098 | |
76 | user: test |
|
76 | user: test | |
77 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
77 | date: Mon Jan 12 13:46:40 1970 +0000 | |
78 | files: foo/plain-file |
|
78 | files: foo/plain-file | |
79 | description: |
|
79 | description: | |
80 | commit-foo-subdir |
|
80 | commit-foo-subdir | |
81 |
|
81 | |||
82 |
|
82 | |||
83 | % subdir log |
|
83 | % subdir log | |
84 | changeset: 1:d9180e04fa8a |
|
84 | changeset: 1:d9180e04fa8a | |
85 | tag: tip |
|
85 | tag: tip | |
86 | user: test |
|
86 | user: test | |
87 | date: Sat Jan 24 03:33:20 1970 +0000 |
|
87 | date: Sat Jan 24 03:33:20 1970 +0000 | |
88 | summary: commit-foo-dot |
|
88 | summary: commit-foo-dot | |
89 |
|
89 | |||
90 | changeset: 0:80b572aaf098 |
|
90 | changeset: 0:80b572aaf098 | |
91 | user: test |
|
91 | user: test | |
92 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
92 | date: Mon Jan 12 13:46:40 1970 +0000 | |
93 | summary: commit-foo-subdir |
|
93 | summary: commit-foo-subdir | |
94 |
|
94 | |||
|
95 | adding a | |||
|
96 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
97 | created new head | |||
|
98 | merging a | |||
|
99 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |||
|
100 | (branch merge, don't forget to commit) | |||
|
101 | % should fail because we are specifying a file name | |||
|
102 | abort: cannot partially commit a merge (do not specify files or patterns) | |||
|
103 | % should fail because we are specifying a pattern | |||
|
104 | abort: cannot partially commit a merge (do not specify files or patterns) | |||
|
105 | % should succeed |
General Comments 0
You need to be logged in to leave comments.
Login now