Show More
@@ -1,88 +1,106 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | echo % commit date test |
|
4 | 4 | hg init test |
|
5 | 5 | cd test |
|
6 | 6 | echo foo > foo |
|
7 | 7 | hg add foo |
|
8 | 8 | HGEDITOR=true hg commit -m "" |
|
9 | 9 | hg commit -d '0 0' -m commit-1 |
|
10 | 10 | echo foo >> foo |
|
11 | 11 | hg commit -d '1 4444444' -m commit-3 |
|
12 | 12 | hg commit -d '1 15.1' -m commit-4 |
|
13 | 13 | hg commit -d 'foo bar' -m commit-5 |
|
14 | 14 | hg commit -d ' 1 4444' -m commit-6 |
|
15 | 15 | hg commit -d '111111111111 0' -m commit-7 |
|
16 | 16 | |
|
17 | 17 | echo % commit added file that has been deleted |
|
18 | 18 | echo bar > bar |
|
19 | 19 | hg add bar |
|
20 | 20 | rm bar |
|
21 | 21 | hg commit -d "1000000 0" -m commit-8 |
|
22 | 22 | hg commit -d "1000000 0" -m commit-8-2 bar |
|
23 | 23 | |
|
24 | 24 | hg -q revert -a --no-backup |
|
25 | 25 | |
|
26 | 26 | mkdir dir |
|
27 | 27 | echo boo > dir/file |
|
28 | 28 | hg add |
|
29 | 29 | hg -v commit -d '0 0' -m commit-9 dir |
|
30 | 30 | |
|
31 | 31 | echo > dir.file |
|
32 | 32 | hg add |
|
33 | 33 | hg commit -d '0 0' -m commit-10 dir dir.file |
|
34 | 34 | |
|
35 | 35 | echo >> dir/file |
|
36 | 36 | mkdir bleh |
|
37 | 37 | mkdir dir2 |
|
38 | 38 | cd bleh |
|
39 | 39 | hg commit -d '0 0' -m commit-11 . |
|
40 | 40 | hg commit -d '0 0' -m commit-12 ../dir ../dir2 |
|
41 | 41 | hg -v commit -d '0 0' -m commit-13 ../dir |
|
42 | 42 | cd .. |
|
43 | 43 | |
|
44 | 44 | hg commit -d '0 0' -m commit-14 does-not-exist |
|
45 | 45 | ln -s foo baz |
|
46 | 46 | hg commit -d '0 0' -m commit-15 baz |
|
47 | 47 | touch quux |
|
48 | 48 | hg commit -d '0 0' -m commit-16 quux |
|
49 | 49 | echo >> dir/file |
|
50 | 50 | hg -v commit -d '0 0' -m commit-17 dir/file |
|
51 | 51 | cd .. |
|
52 | 52 | |
|
53 | 53 | echo % partial subdir commit test |
|
54 | 54 | hg init test2 |
|
55 | 55 | cd test2 |
|
56 | 56 | mkdir foo |
|
57 | 57 | echo foo > foo/foo |
|
58 | 58 | mkdir bar |
|
59 | 59 | echo bar > bar/bar |
|
60 | 60 | hg add |
|
61 | 61 | hg ci -d '1000000 0' -u test -m commit-subdir-1 foo |
|
62 | 62 | hg ci -d '1000001 0' -u test -m commit-subdir-2 bar |
|
63 | 63 | echo % subdir log 1 |
|
64 | 64 | hg log -v foo |
|
65 | 65 | echo % subdir log 2 |
|
66 | 66 | hg log -v bar |
|
67 | 67 | echo % full log |
|
68 | 68 | hg log -v |
|
69 | 69 | cd .. |
|
70 | 70 | |
|
71 | 71 | echo % dot and subdir commit test |
|
72 | 72 | hg init test3 |
|
73 | 73 | cd test3 |
|
74 | 74 | mkdir foo |
|
75 | 75 | echo foo content > foo/plain-file |
|
76 | 76 | hg add foo/plain-file |
|
77 | 77 | hg ci -d '1000000 0' -u test -m commit-foo-subdir foo |
|
78 | 78 | echo modified foo content > foo/plain-file |
|
79 | 79 | hg ci -d '2000000 0' -u test -m commit-foo-dot . |
|
80 | 80 | echo % full log |
|
81 | 81 | hg log -v |
|
82 | 82 | echo % subdir log |
|
83 | 83 | cd foo |
|
84 | 84 | hg log . |
|
85 | 85 | cd .. |
|
86 | 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 | 106 | exit 0 |
@@ -1,94 +1,105 b'' | |||
|
1 | 1 | % commit date test |
|
2 | 2 | transaction abort! |
|
3 | 3 | rollback completed |
|
4 | 4 | abort: empty commit message |
|
5 | 5 | abort: impossible time zone offset: 4444444 |
|
6 | 6 | abort: invalid date: '1\t15.1' |
|
7 | 7 | abort: invalid date: 'foo bar' |
|
8 | 8 | abort: date exceeds 32 bits: 111111111111 |
|
9 | 9 | % commit added file that has been deleted |
|
10 | 10 | nothing changed |
|
11 | 11 | abort: file bar not found! |
|
12 | 12 | adding dir/file |
|
13 | 13 | dir/file |
|
14 | 14 | adding dir.file |
|
15 | 15 | abort: no match under directory dir! |
|
16 | 16 | abort: no match under directory .! |
|
17 | 17 | abort: no match under directory ../dir2! |
|
18 | 18 | dir/file |
|
19 | 19 | does-not-exist: No such file or directory |
|
20 | 20 | abort: file does-not-exist not found! |
|
21 | 21 | abort: file baz not tracked! |
|
22 | 22 | abort: file quux not tracked! |
|
23 | 23 | dir/file |
|
24 | 24 | % partial subdir commit test |
|
25 | 25 | adding bar/bar |
|
26 | 26 | adding foo/foo |
|
27 | 27 | % subdir log 1 |
|
28 | 28 | changeset: 0:6ef3cb06bb80 |
|
29 | 29 | user: test |
|
30 | 30 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
31 | 31 | files: foo/foo |
|
32 | 32 | description: |
|
33 | 33 | commit-subdir-1 |
|
34 | 34 | |
|
35 | 35 | |
|
36 | 36 | % subdir log 2 |
|
37 | 37 | changeset: 1:f2e51572cf5a |
|
38 | 38 | tag: tip |
|
39 | 39 | user: test |
|
40 | 40 | date: Mon Jan 12 13:46:41 1970 +0000 |
|
41 | 41 | files: bar/bar |
|
42 | 42 | description: |
|
43 | 43 | commit-subdir-2 |
|
44 | 44 | |
|
45 | 45 | |
|
46 | 46 | % full log |
|
47 | 47 | changeset: 1:f2e51572cf5a |
|
48 | 48 | tag: tip |
|
49 | 49 | user: test |
|
50 | 50 | date: Mon Jan 12 13:46:41 1970 +0000 |
|
51 | 51 | files: bar/bar |
|
52 | 52 | description: |
|
53 | 53 | commit-subdir-2 |
|
54 | 54 | |
|
55 | 55 | |
|
56 | 56 | changeset: 0:6ef3cb06bb80 |
|
57 | 57 | user: test |
|
58 | 58 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
59 | 59 | files: foo/foo |
|
60 | 60 | description: |
|
61 | 61 | commit-subdir-1 |
|
62 | 62 | |
|
63 | 63 | |
|
64 | 64 | % dot and subdir commit test |
|
65 | 65 | % full log |
|
66 | 66 | changeset: 1:d9180e04fa8a |
|
67 | 67 | tag: tip |
|
68 | 68 | user: test |
|
69 | 69 | date: Sat Jan 24 03:33:20 1970 +0000 |
|
70 | 70 | files: foo/plain-file |
|
71 | 71 | description: |
|
72 | 72 | commit-foo-dot |
|
73 | 73 | |
|
74 | 74 | |
|
75 | 75 | changeset: 0:80b572aaf098 |
|
76 | 76 | user: test |
|
77 | 77 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
78 | 78 | files: foo/plain-file |
|
79 | 79 | description: |
|
80 | 80 | commit-foo-subdir |
|
81 | 81 | |
|
82 | 82 | |
|
83 | 83 | % subdir log |
|
84 | 84 | changeset: 1:d9180e04fa8a |
|
85 | 85 | tag: tip |
|
86 | 86 | user: test |
|
87 | 87 | date: Sat Jan 24 03:33:20 1970 +0000 |
|
88 | 88 | summary: commit-foo-dot |
|
89 | 89 | |
|
90 | 90 | changeset: 0:80b572aaf098 |
|
91 | 91 | user: test |
|
92 | 92 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
93 | 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