##// END OF EJS Templates
update tests...
Matt Mackall -
r619:d96c1153 default
parent child Browse files
Show More
@@ -1,23 +1,24 b''
1 + mkdir t
1 + mkdir t
2 + cd t
2 + cd t
3 + hg init
3 + hg init
4 + echo a
4 + echo a
5 + hg add a
5 + hg add a
6 + hg commit -t test -u test -d '0 0'
6 + hg commit -t test -u test -d '0 0'
7 + hg history
7 + hg history
8 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
8 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
9 tag: tip
9 tag: tip
10 user: test
10 user: test
11 date: Thu Jan 1 00:00:00 1970
11 date: Thu Jan 1 00:00:00 1970
12 summary: test
12 summary: test
13
13
14
14 + hg manifest
15 + hg manifest
15 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
16 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
16 + hg cat a
17 + hg cat a
17 a
18 a
18 + hg verify
19 + hg verify
19 checking changesets
20 checking changesets
20 checking manifests
21 checking manifests
21 crosschecking files in changesets and manifests
22 crosschecking files in changesets and manifests
22 checking files
23 checking files
23 1 files, 1 changesets, 1 total revisions
24 1 files, 1 changesets, 1 total revisions
@@ -1,52 +1,55 b''
1 + hg init
1 + hg init
2 + echo a
2 + echo a
3 + hg add a
3 + hg add a
4 + hg commit -t 1 -u test -d '0 0'
4 + hg commit -t 1 -u test -d '0 0'
5 + hg status
5 + hg status
6 ? .out
6 ? .out
7 + cp a b
7 + cp a b
8 + hg copy a b
8 + hg copy a b
9 + hg status
9 + hg status
10 A b
10 A b
11 ? .out
11 ? .out
12 + hg --debug commit -t 2 -u test -d '0 0'
12 + hg --debug commit -t 2 -u test -d '0 0'
13 b
13 b
14 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
14 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
15 + hg history
15 + hg history
16 changeset: 1:3b5b84850bbed12e8ff8c1b87b32dc93c59ae6d8
16 changeset: 1:3b5b84850bbed12e8ff8c1b87b32dc93c59ae6d8
17 tag: tip
17 tag: tip
18 user: test
18 user: test
19 date: Thu Jan 1 00:00:00 1970
19 date: Thu Jan 1 00:00:00 1970
20 summary: 2
20 summary: 2
21
21
22
22 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
23 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
23 user: test
24 user: test
24 date: Thu Jan 1 00:00:00 1970
25 date: Thu Jan 1 00:00:00 1970
25 summary: 1
26 summary: 1
26
27
28
27 + hg log a
29 + hg log a
28 revision: 0:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
30 revision: 0:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
29 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
31 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
30 user: test
32 user: test
31 date: Thu Jan 1 00:00:00 1970
33 date: Thu Jan 1 00:00:00 1970
32 summary: 1
34 summary: 1
33
35
36
34 + hexdump -C .hg/data/b.d
37 + hexdump -C .hg/data/b.d
35 00000000 75 01 0a 63 6f 70 79 72 65 76 3a 20 62 37 38 39 |u..copyrev: b789|
38 00000000 75 01 0a 63 6f 70 79 72 65 76 3a 20 62 37 38 39 |u..copyrev: b789|
36 00000010 66 64 64 39 36 64 63 32 66 33 62 64 32 32 39 63 |fdd96dc2f3bd229c|
39 00000010 66 64 64 39 36 64 63 32 66 33 62 64 32 32 39 63 |fdd96dc2f3bd229c|
37 00000020 31 64 64 38 65 65 64 66 30 66 63 36 30 65 32 62 |1dd8eedf0fc60e2b|
40 00000020 31 64 64 38 65 65 64 66 30 66 63 36 30 65 32 62 |1dd8eedf0fc60e2b|
38 00000030 36 38 65 33 0a 63 6f 70 79 3a 20 61 0a 01 0a 61 |68e3.copy: a...a|
41 00000030 36 38 65 33 0a 63 6f 70 79 3a 20 61 0a 01 0a 61 |68e3.copy: a...a|
39 00000040 0a |.|
42 00000040 0a |.|
40 00000041
43 00000041
41 + hg cat b
44 + hg cat b
42 + md5sum bsum
45 + md5sum bsum
43 60b725f10c9c85c70d97880dfe8191b3 bsum
46 60b725f10c9c85c70d97880dfe8191b3 bsum
44 + hg cat a
47 + hg cat a
45 + md5sum asum
48 + md5sum asum
46 60b725f10c9c85c70d97880dfe8191b3 asum
49 60b725f10c9c85c70d97880dfe8191b3 asum
47 + hg verify
50 + hg verify
48 checking changesets
51 checking changesets
49 checking manifests
52 checking manifests
50 crosschecking files in changesets and manifests
53 crosschecking files in changesets and manifests
51 checking files
54 checking files
52 2 files, 2 changesets, 2 total revisions
55 2 files, 2 changesets, 2 total revisions
@@ -1,72 +1,75 b''
1 + umask 027
1 + umask 027
2 + mkdir test1
2 + mkdir test1
3 + cd test1
3 + cd test1
4 + hg init
4 + hg init
5 + touch a b
5 + touch a b
6 + hg add a b
6 + hg add a b
7 + hg ci -t 'added a b' -u test -d '0 0'
7 + hg ci -t 'added a b' -u test -d '0 0'
8 + cd ..
8 + cd ..
9 + mkdir test2
9 + mkdir test2
10 + cd test2
10 + cd test2
11 + hg init
11 + hg init
12 + hg pull ../test1
12 + hg pull ../test1
13 pulling from ../test1
13 pulling from ../test1
14 requesting all changes
14 requesting all changes
15 adding changesets
15 adding changesets
16 adding manifests
16 adding manifests
17 adding file revisions
17 adding file revisions
18 modified 2 files, added 1 changesets and 2 new revisions
18 modified 2 files, added 1 changesets and 2 new revisions
19 (run 'hg update' to get a working copy)
19 (run 'hg update' to get a working copy)
20 + hg co
20 + hg co
21 + chmod +x a
21 + chmod +x a
22 + hg ci -t 'chmod +x a' -u test -d '0 0'
22 + hg ci -t 'chmod +x a' -u test -d '0 0'
23 + cd ../test1
23 + cd ../test1
24 + echo 123
24 + echo 123
25 + hg ci -t 'a updated' -u test -d '0 0'
25 + hg ci -t 'a updated' -u test -d '0 0'
26 + hg pull ../test2
26 + hg pull ../test2
27 pulling from ../test2
27 pulling from ../test2
28 searching for changes
28 searching for changes
29 adding changesets
29 adding changesets
30 adding manifests
30 adding manifests
31 adding file revisions
31 adding file revisions
32 modified 1 files, added 1 changesets and 1 new revisions
32 modified 1 files, added 1 changesets and 1 new revisions
33 (run 'hg update' to get a working copy)
33 (run 'hg update' to get a working copy)
34 + hg heads
34 + hg heads
35 changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1
35 changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1
36 tag: tip
36 tag: tip
37 parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7
37 parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7
38 user: test
38 user: test
39 date: Thu Jan 1 00:00:00 1970
39 date: Thu Jan 1 00:00:00 1970
40 summary: chmod +x a
40 summary: chmod +x a
41
41
42 changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5
42 changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5
43 user: test
43 user: test
44 date: Thu Jan 1 00:00:00 1970
44 date: Thu Jan 1 00:00:00 1970
45 summary: a updated
45 summary: a updated
46
46
47 + hg history
47 + hg history
48 changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1
48 changeset: 2:3ef54330565526bebf37a0d9bf540c283fd133a1
49 tag: tip
49 tag: tip
50 parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7
50 parent: 0:22a449e20da501ca558394c083ca470e9c81b9f7
51 user: test
51 user: test
52 date: Thu Jan 1 00:00:00 1970
52 date: Thu Jan 1 00:00:00 1970
53 summary: chmod +x a
53 summary: chmod +x a
54
54
55
55 changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5
56 changeset: 1:c6ecefc45368ed556d965f1c1086c6561a8b2ac5
56 user: test
57 user: test
57 date: Thu Jan 1 00:00:00 1970
58 date: Thu Jan 1 00:00:00 1970
58 summary: a updated
59 summary: a updated
59
60
61
60 changeset: 0:22a449e20da501ca558394c083ca470e9c81b9f7
62 changeset: 0:22a449e20da501ca558394c083ca470e9c81b9f7
61 user: test
63 user: test
62 date: Thu Jan 1 00:00:00 1970
64 date: Thu Jan 1 00:00:00 1970
63 summary: added a b
65 summary: added a b
64
66
67
65 + hg -v co -m
68 + hg -v co -m
66 resolving manifests
69 resolving manifests
67 merging a
70 merging a
68 resolving a
71 resolving a
69 + ls -l ../test1/a ../test2/a
72 + ls -l ../test1/a ../test2/a
70 + cut -b 0-10
73 + cut -b 0-10
71 -rwxr-x---
74 -rwxr-x---
72 -rwxr-x---
75 -rwxr-x---
1 NO CONTENT: modified file chmod 100644 => 100755
NO CONTENT: modified file chmod 100644 => 100755
@@ -1,21 +1,21 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir test
3 mkdir test
4 cd test
4 cd test
5 echo foo>foo
5 echo foo>foo
6 hg init
6 hg init
7 hg addremove
7 hg addremove
8 hg commit -t "1"
8 hg commit -t "1"
9 hg verify
9 hg verify
10 hg serve -p 20059 2>/dev/null &
10 hg serve -p 20059 >/dev/null 2>&1 &
11 cd ..
11 cd ..
12
12
13 hg clone http://localhost:20059/ copy
13 hg clone http://localhost:20059/ copy
14 cd copy
14 cd copy
15 hg verify
15 hg verify
16 hg co
16 hg co
17 cat foo
17 cat foo
18 hg manifest
18 hg manifest
19 hg pull
19 hg pull
20
20
21 kill $!
21 kill $!
@@ -1,31 +1,34 b''
1 + hg init
1 + hg init
2 + echo a
2 + echo a
3 + hg add a
3 + hg add a
4 + hg commit -t test -u test -d '0 0'
4 + hg commit -t test -u test -d '0 0'
5 + hg history
5 + hg history
6 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
6 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
7 tag: tip
7 tag: tip
8 user: test
8 user: test
9 date: Thu Jan 1 00:00:00 1970
9 date: Thu Jan 1 00:00:00 1970
10 summary: test
10 summary: test
11
11
12
12 + hg tag -u test -d '0 0' bleah
13 + hg tag -u test -d '0 0' bleah
13 + hg history
14 + hg history
14 changeset: 1:863197ef03781c4fc00276d83eb66c4cb9cd91df
15 changeset: 1:863197ef03781c4fc00276d83eb66c4cb9cd91df
15 tag: tip
16 tag: tip
16 user: test
17 user: test
17 date: Thu Jan 1 00:00:00 1970
18 date: Thu Jan 1 00:00:00 1970
18 summary: Added tag bleah for changeset acb14030fe0a21b60322c440ad2d20cf7685a376
19 summary: Added tag bleah for changeset acb14030fe0a21b60322c440ad2d20cf7685a376
19
20
21
20 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
22 changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376
21 tag: bleah
23 tag: bleah
22 user: test
24 user: test
23 date: Thu Jan 1 00:00:00 1970
25 date: Thu Jan 1 00:00:00 1970
24 summary: test
26 summary: test
25
27
28
26 + echo foo
29 + echo foo
27 + hg tag -u test -d '0 0' bleah2
30 + hg tag -u test -d '0 0' bleah2
28 abort: working copy of .hgtags is changed!
31 abort: working copy of .hgtags is changed!
29 (please commit .hgtags manually)
32 (please commit .hgtags manually)
30 + echo failed
33 + echo failed
31 failed
34 failed
@@ -1,74 +1,76 b''
1 + mkdir r1
1 + mkdir r1
2 + cd r1
2 + cd r1
3 + hg init
3 + hg init
4 + echo a
4 + echo a
5 + hg addremove
5 + hg addremove
6 + hg commit -t 1 -u test -d '0 0'
6 + hg commit -t 1 -u test -d '0 0'
7 + hg clone . ../r2
7 + hg clone . ../r2
8 + cd ../r2
8 + cd ../r2
9 + hg up
9 + hg up
10 + echo abc
10 + echo abc
11 + hg diff
11 + hg diff
12 + sed 's/\(\(---\|+++\).*\)\t.*/\1/'
12 + sed 's/\(\(---\|+++\).*\)\t.*/\1/'
13 diff -r c19d34741b0a a
13 diff -r c19d34741b0a a
14 --- a/a
14 --- a/a
15 +++ b/a
15 +++ b/a
16 @@ -1,1 +1,1 @@
16 @@ -1,1 +1,1 @@
17 -a
17 -a
18 +abc
18 +abc
19 + cd ../r1
19 + cd ../r1
20 + echo b
20 + echo b
21 + echo a2
21 + echo a2
22 + hg addremove
22 + hg addremove
23 + hg commit -t 2 -u test -d '0 0'
23 + hg commit -t 2 -u test -d '0 0'
24 + cd ../r2
24 + cd ../r2
25 + hg -q pull ../r1
25 + hg -q pull ../r1
26 + hg status
26 + hg status
27 C a
27 C a
28 + hg --debug up
28 + hg --debug up
29 resolving manifests
29 resolving manifests
30 ancestor a0c8bcbbb45c local a0c8bcbbb45c remote 1165e8bd193e
30 ancestor a0c8bcbbb45c local a0c8bcbbb45c remote 1165e8bd193e
31 a versions differ, resolve
31 a versions differ, resolve
32 remote created b
32 remote created b
33 getting b
33 getting b
34 merging a
34 merging a
35 resolving a
35 resolving a
36 file a: other d730145abbf9 ancestor b789fdd96dc2
36 file a: other d730145abbf9 ancestor b789fdd96dc2
37 + hg --debug up -m
37 + hg --debug up -m
38 resolving manifests
38 resolving manifests
39 ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e
39 ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e
40 + hg parents
40 + hg parents
41 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
41 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
42 tag: tip
42 tag: tip
43 user: test
43 user: test
44 date: Thu Jan 1 00:00:00 1970
44 date: Thu Jan 1 00:00:00 1970
45 summary: 2
45 summary: 2
46
46
47 + hg -v history
47 + hg -v history
48 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
48 changeset: 1:1e71731e6fbb5b35fae293120dea6964371c13c6
49 tag: tip
49 tag: tip
50 manifest: 1:1165e8bd193e17ad7d321d846fcf27ff3f412758
50 manifest: 1:1165e8bd193e17ad7d321d846fcf27ff3f412758
51 user: test
51 user: test
52 date: Thu Jan 1 00:00:00 1970
52 date: Thu Jan 1 00:00:00 1970
53 files: a b
53 files: a b
54 description:
54 description:
55 2
55 2
56
56
57
57
58
58 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
59 changeset: 0:c19d34741b0a4ced8e4ba74bb834597d5193851e
59 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
60 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
60 user: test
61 user: test
61 date: Thu Jan 1 00:00:00 1970
62 date: Thu Jan 1 00:00:00 1970
62 files: a
63 files: a
63 description:
64 description:
64 1
65 1
65
66
66
67
68
67 + hg diff
69 + hg diff
68 + sed 's/\(\(---\|+++\).*\)\t.*/\1/'
70 + sed 's/\(\(---\|+++\).*\)\t.*/\1/'
69 diff -r 1e71731e6fbb a
71 diff -r 1e71731e6fbb a
70 --- a/a
72 --- a/a
71 +++ b/a
73 +++ b/a
72 @@ -1,1 +1,1 @@
74 @@ -1,1 +1,1 @@
73 -a2
75 -a2
74 +abc
76 +abc
General Comments 0
You need to be logged in to leave comments. Login now