Show More
@@ -1,5 +1,6 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | echo % commit date test | |||
3 | hg init test |
|
4 | hg init test | |
4 | cd test |
|
5 | cd test | |
5 | echo foo > foo |
|
6 | echo foo > foo | |
@@ -12,8 +13,29 b" hg commit -d 'foo bar' -m commit-5" | |||||
12 | hg commit -d ' 1 4444' -m commit-6 |
|
13 | hg commit -d ' 1 4444' -m commit-6 | |
13 | hg commit -d '111111111111 0' -m commit-7 |
|
14 | hg commit -d '111111111111 0' -m commit-7 | |
14 |
|
15 | |||
|
16 | echo % partial commit test | |||
15 | echo bar > bar |
|
17 | echo bar > bar | |
16 | hg add bar |
|
18 | hg add bar | |
17 | rm bar |
|
19 | rm bar | |
18 | hg commit -d "1000000 0" -m commit-8 2>&1 | sed -e "s:/.*\(/test/.*\):...\1:" |
|
20 | hg commit -d "1000000 0" -m commit-8 2>&1 | sed -e "s:/.*\(/test/.*\):...\1:" | |
|
21 | cd .. | |||
|
22 | ||||
|
23 | echo % partial subdir commit test | |||
|
24 | hg init test2 | |||
|
25 | cd test2 | |||
|
26 | mkdir foo | |||
|
27 | echo foo > foo/foo | |||
|
28 | mkdir bar | |||
|
29 | echo bar > bar/bar | |||
|
30 | hg add | |||
|
31 | hg ci -d '1000000 0' -u test -m commit-subdir-1 foo | |||
|
32 | hg ci -d '1000001 0' -u test -m commit-subdir-2 bar | |||
|
33 | echo % subdir log 1 | |||
|
34 | hg log -v foo | |||
|
35 | echo % subdir log 2 | |||
|
36 | hg log -v bar | |||
|
37 | echo % full log | |||
|
38 | hg log -v | |||
|
39 | cd .. | |||
|
40 | ||||
19 | exit 0 |
|
41 | exit 0 |
@@ -1,3 +1,4 b'' | |||||
|
1 | % commit date test | |||
1 | abort: impossible time zone offset: 4444444 |
|
2 | abort: impossible time zone offset: 4444444 | |
2 | transaction abort! |
|
3 | transaction abort! | |
3 | rollback completed |
|
4 | rollback completed | |
@@ -13,5 +14,46 b' rollback completed' | |||||
13 | abort: date exceeds 32 bits: 111111111111 |
|
14 | abort: date exceeds 32 bits: 111111111111 | |
14 | transaction abort! |
|
15 | transaction abort! | |
15 | rollback completed |
|
16 | rollback completed | |
|
17 | % partial commit test | |||
16 | trouble committing bar! |
|
18 | trouble committing bar! | |
17 | abort: No such file or directory: .../test/bar |
|
19 | abort: No such file or directory: .../test/bar | |
|
20 | % partial subdir commit test | |||
|
21 | adding bar/bar | |||
|
22 | adding foo/foo | |||
|
23 | % subdir log 1 | |||
|
24 | changeset: 0:6ef3cb06bb80 | |||
|
25 | user: test | |||
|
26 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
27 | files: foo/foo | |||
|
28 | description: | |||
|
29 | commit-subdir-1 | |||
|
30 | ||||
|
31 | ||||
|
32 | % subdir log 2 | |||
|
33 | changeset: 1:f2e51572cf5a | |||
|
34 | tag: tip | |||
|
35 | user: test | |||
|
36 | date: Mon Jan 12 13:46:41 1970 +0000 | |||
|
37 | files: bar/bar | |||
|
38 | description: | |||
|
39 | commit-subdir-2 | |||
|
40 | ||||
|
41 | ||||
|
42 | % full log | |||
|
43 | changeset: 1:f2e51572cf5a | |||
|
44 | tag: tip | |||
|
45 | user: test | |||
|
46 | date: Mon Jan 12 13:46:41 1970 +0000 | |||
|
47 | files: bar/bar | |||
|
48 | description: | |||
|
49 | commit-subdir-2 | |||
|
50 | ||||
|
51 | ||||
|
52 | changeset: 0:6ef3cb06bb80 | |||
|
53 | user: test | |||
|
54 | date: Mon Jan 12 13:46:40 1970 +0000 | |||
|
55 | files: foo/foo | |||
|
56 | description: | |||
|
57 | commit-subdir-1 | |||
|
58 | ||||
|
59 |
General Comments 0
You need to be logged in to leave comments.
Login now