##// END OF EJS Templates
Updated output of tests.
Thomas Arendsen Hein -
r801:1f9ec150 default
parent child Browse files
Show More
@@ -1,12 +1,8 b''
1 + hg init
1 + hg init
2 + echo This is file a1
3 + hg add a
2 + hg add a
4 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
5 + ls
6 a
4 a
7 + echo This is file b1
8 + hg add b
5 + hg add b
9 + hg commit -m 'commit #1' -d '0 0'
6 + hg commit -m commit #1 -d 0 0
10 + hg co 0
7 + hg co 0
11 + ls
12 a
8 a
@@ -1,15 +1,9 b''
1 + hg clone http://localhost:20059/ copy
1 + hg clone http://localhost:20059/ copy
2 requesting all changes
2 requesting all changes
3 abort: error: Connection refused
3 abort: error: Connection refused
4 + echo 255
5 255
4 255
6 + ls copy
7 ls: copy: No such file or directory
5 ls: copy: No such file or directory
8 + cat
9 + set +x
10 + hg clone http://localhost:20059/foo copy2
6 + hg clone http://localhost:20059/foo copy2
11 requesting all changes
7 requesting all changes
12 abort: HTTP Error 404: File not found
8 abort: HTTP Error 404: File not found
13 + echo 255
14 255
9 255
15 + set +x
@@ -1,9 +1,6 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo a
5 + hg add a
2 + hg add a
6 + hg commit -m test -d '0 0'
3 + hg commit -m test -d 0 0
7 + hg history
4 + hg history
8 changeset: 0:acb14030fe0a
5 changeset: 0:acb14030fe0a
9 tag: tip
6 tag: tip
@@ -1,39 +1,20 b''
1 + hg clone a b
1 + hg clone a b
2 abort: repository a/.hg not found!
2 abort: repository a/.hg not found!
3 + echo 255
4 255
3 255
5 + hg clone http://127.0.0.1:3121/a b
4 + hg clone http://127.0.0.1:3121/a b
6 requesting all changes
5 requesting all changes
7 abort: error: Connection refused
6 abort: error: Connection refused
8 + echo 255
9 255
7 255
10 + rm -rf b
11 + mkdir a
12 + chmod 000 a
13 + hg clone a b
8 + hg clone a b
14 abort: repository a/.hg not found!
9 abort: repository a/.hg not found!
15 + echo 255
16 255
10 255
17 + mkdir b
18 + cd b
19 + hg init
11 + hg init
20 + hg clone . ../a
12 + hg clone . ../a
21 abort: destination '../a' already exists
13 abort: destination '../a' already exists
22 + echo 1
23 1
14 1
24 + cd ..
25 + chmod 700 a
26 + rm -rf a b
27 + mkfifo a
28 + hg clone a b
15 + hg clone a b
29 abort: repository a/.hg not found!
16 abort: repository a/.hg not found!
30 + echo 255
31 255
17 255
32 + rm a
33 + mkdir q
34 + cd q
35 + hg init
18 + hg init
36 + cd ..
37 + hg clone q
19 + hg clone q
38 abort: destination 'q' already exists
20 abort: destination 'q' already exists
39 + true
@@ -1,12 +1,7 b''
1 + mkdir a
2 + cd a
3 + hg init
1 + hg init
4 + echo a
5 + hg add a
2 + hg add a
6 + hg commit -m test -d '0 0'
3 + hg commit -m test -d 0 0
7 + hg clone . ../b
4 + hg clone . ../b
8 + cd ../b
9 + cat a
10 a
5 a
11 + hg verify
6 + hg verify
12 checking changesets
7 checking changesets
@@ -15,8 +10,6 b' crosschecking files in changesets and ma'
15 checking files
10 checking files
16 1 files, 1 changesets, 1 total revisions
11 1 files, 1 changesets, 1 total revisions
17 + hg clone -U . ../c
12 + hg clone -U . ../c
18 + cd ../c
19 + cat a
20 cat: a: No such file or directory
13 cat: a: No such file or directory
21 + hg verify
14 + hg verify
22 checking changesets
15 checking changesets
@@ -24,9 +17,6 b' checking manifests'
24 crosschecking files in changesets and manifests
17 crosschecking files in changesets and manifests
25 checking files
18 checking files
26 1 files, 1 changesets, 1 total revisions
19 1 files, 1 changesets, 1 total revisions
27 + mkdir ../d
28 + cd ../d
29 + hg clone ../a
20 + hg clone ../a
30 + cd a
31 + hg cat a
21 + hg cat a
32 a
22 a
@@ -1,24 +1,17 b''
1 + hg init
1 + hg init
2 + echo nothing
3 + hg add a
2 + hg add a
4 + hg commit -m ancestor -d '0 0'
3 + hg commit -m ancestor -d 0 0
5 + echo something
4 + hg commit -m branch1 -d 0 0
6 + hg commit -m branch1 -d '0 0'
7 + hg co 0
5 + hg co 0
8 + echo 'something else'
6 + hg commit -m branch2 -d 0 0
9 + hg commit -m branch2 -d '0 0'
10 + export HGMERGE=merge
11 + HGMERGE=merge
12 + hg up -m 1
7 + hg up -m 1
13 merge: warning: conflicts during merge
8 merge: warning: conflicts during merge
14 merging a
9 merging a
15 merging a failed!
10 merging a failed!
16 + hg id
11 + hg id
17 32e80765d7fe+75234512624c+ tip
12 32e80765d7fe+75234512624c+ tip
18 + grep -Ev '>>>|<<<' a
19 something else
13 something else
20 =======
14 =======
21 something
15 something
22 + hg status
16 + hg status
23 M a
17 M a
24 ? .out
@@ -1,15 +1,11 b''
1 + hg init
1 + hg init
2 + echo a
3 + hg add a
2 + hg add a
4 + hg commit -m 1 -d '0 0'
3 + hg commit -m 1 -d 0 0
5 + hg status
4 + hg status
6 ? .out
7 + cp a b
8 + hg copy a b
5 + hg copy a b
9 + hg status
6 + hg status
10 A b
7 A b
11 ? .out
8 + hg --debug commit -m 2 -d 0 0
12 + hg --debug commit -m 2 -d '0 0'
13 b
9 b
14 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
10 b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
15 + hg history
11 + hg history
@@ -30,19 +26,9 b' user: test'
30 date: Thu Jan 1 00:00:00 1970
26 date: Thu Jan 1 00:00:00 1970
31 summary: 1
27 summary: 1
32
28
33 + hexdump -C .hg/data/b.d
29 566e338d09a089ba737c21e0d3759980 .hg/data/b.d
34 00000000 75 01 0a 63 6f 70 79 72 65 76 3a 20 62 37 38 39 |u..copyrev: b789|
30 3268d2f51b2d2d423ff01b59eb6fbb14 bsum
35 00000010 66 64 64 39 36 64 63 32 66 33 62 64 32 32 39 63 |fdd96dc2f3bd229c|
31 70909ca2ecf494c71e9184b445e040ee asum
36 00000020 31 64 64 38 65 65 64 66 30 66 63 36 30 65 32 62 |1dd8eedf0fc60e2b|
37 00000030 36 38 65 33 0a 63 6f 70 79 3a 20 61 0a 01 0a 61 |68e3.copy: a...a|
38 00000040 0a |.|
39 00000041
40 + hg cat b
41 + md5sum bsum
42 60b725f10c9c85c70d97880dfe8191b3 bsum
43 + hg cat a
44 + md5sum asum
45 60b725f10c9c85c70d97880dfe8191b3 asum
46 + hg verify
32 + hg verify
47 checking changesets
33 checking changesets
48 checking manifests
34 checking manifests
@@ -1,8 +1,14 b''
1 + hg init
2 + hg add a
3 + hg ci -m a -d 0 0
4 + hg add b
5 + hg diff
1 diff -r 3903775176ed b
6 diff -r 3903775176ed b
2 --- /dev/null
7 --- /dev/null
3 +++ b/b
8 +++ b/b
4 @@ -0,0 +1,1 @@
9 @@ -0,0 +1,1 @@
5 +123
10 +123
11 + hg diff -r tip
6 diff -r 3903775176ed b
12 diff -r 3903775176ed b
7 --- /dev/null
13 --- /dev/null
8 +++ b/b
14 +++ b/b
@@ -1,3 +1,9 b''
1 + hg init
2 + hg add a
3 + hg commit -m first -d 0 0 a
4 + hg add sub/b
5 + hg commit -m second -d 0 0 sub/b
1 321
6 321
7 + hg co 0
2 cat: sub/b: No such file or directory
8 cat: sub/b: No such file or directory
3 ls: sub: No such file or directory
9 ls: sub: No such file or directory
@@ -1,13 +1,6 b''
1 + umask 027
2 + mkdir test1
3 + cd test1
4 + hg init
1 + hg init
5 + touch a b
6 + hg add a b
2 + hg add a b
7 + hg ci -m 'added a b' -d '0 0'
3 + hg ci -m added a b -d 0 0
8 + cd ..
9 + mkdir test2
10 + cd test2
11 + hg init
4 + hg init
12 + hg pull ../test1
5 + hg pull ../test1
13 pulling from ../test1
6 pulling from ../test1
@@ -18,11 +11,8 b' adding file changes'
18 added 1 changesets with 2 changes to 2 files
11 added 1 changesets with 2 changes to 2 files
19 (run 'hg update' to get a working copy)
12 (run 'hg update' to get a working copy)
20 + hg co
13 + hg co
21 + chmod +x a
14 + hg ci -m chmod +x a -d 0 0
22 + hg ci -m 'chmod +x a' -d '0 0'
15 + hg ci -m a updated -d 0 0
23 + cd ../test1
24 + echo 123
25 + hg ci -m 'a updated' -d '0 0'
26 + hg pull ../test2
16 + hg pull ../test2
27 pulling from ../test2
17 pulling from ../test2
28 searching for changes
18 searching for changes
@@ -66,7 +56,5 b' summary: added a b'
66 resolving manifests
56 resolving manifests
67 merging a
57 merging a
68 resolving a
58 resolving a
69 + ls -l ../test1/a ../test2/a
70 + cut -b 0-10
71 -rwxr-x---
59 -rwxr-x---
72 -rwxr-x---
60 -rwxr-x---
@@ -1,3 +1,4 b''
1 + hg help
1 basic hg commands (use "hg help -v" for more):
2 basic hg commands (use "hg help -v" for more):
2
3
3 add add the specified files on the next commit
4 add add the specified files on the next commit
@@ -15,6 +16,7 b' basic hg commands (use "hg help -v" for '
15 serve export the repository via HTTP
16 serve export the repository via HTTP
16 status show changed files in the working directory
17 status show changed files in the working directory
17 update update or merge working directory
18 update update or merge working directory
19 + hg -q help
18 basic hg commands (use "hg help -v" for more):
20 basic hg commands (use "hg help -v" for more):
19
21
20 add add the specified files on the next commit
22 add add the specified files on the next commit
@@ -32,6 +34,7 b' basic hg commands (use "hg help -v" for '
32 serve export the repository via HTTP
34 serve export the repository via HTTP
33 status show changed files in the working directory
35 status show changed files in the working directory
34 update update or merge working directory
36 update update or merge working directory
37 + hg add -h
35 hg add: option -h not recognized
38 hg add: option -h not recognized
36 hg add [FILE]...
39 hg add [FILE]...
37
40
@@ -41,6 +44,7 b' hg add [FILE]...'
41 exclude path from search
44 exclude path from search
42
45
43 add the specified files on the next commit
46 add the specified files on the next commit
47 + hg add --skjdfks
44 hg add: option --skjdfks not recognized
48 hg add: option --skjdfks not recognized
45 hg add [FILE]...
49 hg add [FILE]...
46
50
@@ -50,6 +54,7 b' hg add [FILE]...'
50 exclude path from search
54 exclude path from search
51
55
52 add the specified files on the next commit
56 add the specified files on the next commit
57 + hg help diff
53 hg diff [-r REV1 [-r REV2]] [FILE]...
58 hg diff [-r REV1 [-r REV2]] [FILE]...
54
59
55 -r --rev
60 -r --rev
@@ -60,7 +65,9 b' hg diff [-r REV1 [-r REV2]] [FILE]...'
60 exclude path from search
65 exclude path from search
61
66
62 diff working directory (or selected files)
67 diff working directory (or selected files)
68 + hg help foo
63 hg: unknown command foo
69 hg: unknown command foo
70 + hg -q commands
64 hg: unknown command 'commands'
71 hg: unknown command 'commands'
65 basic hg commands (use "hg help -v" for more):
72 basic hg commands (use "hg help -v" for more):
66
73
@@ -1,9 +1,5 b''
1 + hg init
1 + hg init
2 + echo '[hooks]'
3 + echo 'precommit = echo precommit hook'
4 + echo 'commit = echo commit hook: $NODE'
5 + echo a
6 + hg add a
2 + hg add a
7 + hg commit -m test -d '0 0'
3 + hg commit -m test -d 0 0
8 precommit hook
4 precommit hook
9 commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376
5 commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376
@@ -1,3 +1,5 b''
1 + hg init
2 + hg serve --stdio
1 0
3 0
2 0
4 0
3 adding changesets
5 adding changesets
@@ -1,12 +1,7 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo 'added file1'
5 + echo 'added file2'
6 + hg add file1 file2
2 + hg add file1 file2
7 + hg commit -m 'added file1 and file2' -d '0 0' -u user
3 + hg commit -m added file1 and file2 -d 0 0 -u user
8 + echo 'changed file1'
4 + hg commit -m changed file1 -d 0 0 -u user
9 + hg commit -m 'changed file1' -d '0 0' -u user
10 + hg -q log
5 + hg -q log
11 1:3aa14bbc23d90e3f8b5b639b4a43d76509bae76c
6 1:3aa14bbc23d90e3f8b5b639b4a43d76509bae76c
12 0:8633637036c18f021d771208e16ae3508ab81d28
7 0:8633637036c18f021d771208e16ae3508ab81d28
@@ -15,7 +10,6 b' 3aa14bbc23d9 tip'
15 + hg update -C 0
10 + hg update -C 0
16 + hg id
11 + hg id
17 8633637036c1
12 8633637036c1
18 + echo 'changed file1'
19 + hg id
13 + hg id
20 8633637036c1+
14 8633637036c1+
21 + hg revert
15 + hg revert
@@ -29,8 +23,6 b' 8633637036c1'
29 + hg id
23 + hg id
30 3aa14bbc23d9 tip
24 3aa14bbc23d9 tip
31 + hg update -C 0
25 + hg update -C 0
32 + echo 'changed file1'
33 + HGMERGE=merge
34 + hg update
26 + hg update
35 merging file1
27 merging file1
36 + hg diff
28 + hg diff
@@ -52,5 +44,3 b' 3aa14bbc23d9 tip'
52 + hg status
44 + hg status
53 + hg id
45 + hg id
54 3aa14bbc23d9 tip
46 3aa14bbc23d9 tip
55 + cd ..
56 + /bin/rm -rf t
@@ -1,12 +1,7 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo 'added file1'
5 + echo 'added file2'
6 + hg add file1 file2
2 + hg add file1 file2
7 + hg commit -m 'added file1 and file2' -d '0 0' -u user
3 + hg commit -m added file1 and file2 -d 0 0 -u user
8 + echo 'changed file1'
4 + hg commit -m changed file1 -d 0 0 -u user
9 + hg commit -m 'changed file1' -d '0 0' -u user
10 + hg -q log
5 + hg -q log
11 1:3aa14bbc23d90e3f8b5b639b4a43d76509bae76c
6 1:3aa14bbc23d90e3f8b5b639b4a43d76509bae76c
12 0:8633637036c18f021d771208e16ae3508ab81d28
7 0:8633637036c18f021d771208e16ae3508ab81d28
@@ -15,7 +10,6 b' 3aa14bbc23d9 tip'
15 + hg update -C 0
10 + hg update -C 0
16 + hg id
11 + hg id
17 8633637036c1
12 8633637036c1
18 + echo 'changed file1'
19 + hg id
13 + hg id
20 8633637036c1+
14 8633637036c1+
21 + hg revert
15 + hg revert
@@ -29,14 +23,11 b' 8633637036c1'
29 + hg id
23 + hg id
30 3aa14bbc23d9 tip
24 3aa14bbc23d9 tip
31 + hg update -C 0
25 + hg update -C 0
32 + echo 'changed file1 different'
33 + HGMERGE=merge
34 + hg update
26 + hg update
35 merge: warning: conflicts during merge
27 merge: warning: conflicts during merge
36 merging file1
28 merging file1
37 merging file1 failed!
29 merging file1 failed!
38 + hg diff
30 + hg diff
39 + sed -e 's/\(\(---\|+++\).*\)\t.*/\1/' -e 's/\(<<<<<<<\|>>>>>>>\) .*/\1/'
40 diff -r 3aa14bbc23d9 file1
31 diff -r 3aa14bbc23d9 file1
41 --- a/file1
32 --- a/file1
42 +++ b/file1
33 +++ b/file1
@@ -66,5 +57,3 b' 3aa14bbc23d9 tip'
66 + hg status
57 + hg status
67 + hg id
58 + hg id
68 3aa14bbc23d9 tip
59 3aa14bbc23d9 tip
69 + cd ..
70 + /bin/rm -rf t
@@ -1,82 +1,45 b''
1 + cat
2 + chmod +x merge
3 + mkdir t
4 + cd t
5 + hg init
1 + hg init
6 + echo This is file a1
7 + hg add a
2 + hg add a
8 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
9 + echo This is file b1
10 + hg add b
4 + hg add b
11 + hg commit -m 'commit #1' -d '0 0'
5 + hg commit -m commit #1 -d 0 0
12 + hg update 0
6 + hg update 0
13 + echo This is file c1
14 + hg add c
7 + hg add c
15 + hg commit -m 'commit #2' -d '0 0'
8 + hg commit -m commit #2 -d 0 0
16 + echo This is file b1
9 + hg update -m 1
17 + env HGMERGE=../merge hg update -m 1
18 + cd ..
19 + /bin/rm -rf t
20 + mkdir t
21 + cd t
22 + hg init
10 + hg init
23 + echo This is file a1
24 + hg add a
11 + hg add a
25 + hg commit -m 'commit #0' -d '0 0'
12 + hg commit -m commit #0 -d 0 0
26 + echo This is file b1
27 + hg add b
13 + hg add b
28 + hg commit -m 'commit #1' -d '0 0'
14 + hg commit -m commit #1 -d 0 0
29 + hg update 0
15 + hg update 0
30 + echo This is file c1
31 + hg add c
16 + hg add c
32 + hg commit -m 'commit #2' -d '0 0'
17 + hg commit -m commit #2 -d 0 0
33 + echo This is file b2
18 + hg update -m 1
34 + env HGMERGE=../merge hg update -m 1
35 merging for b
19 merging for b
36 merging b
20 merging b
37 + cd ..
38 + /bin/rm -rf t
39 + mkdir t
40 + cd t
41 + hg init
21 + hg init
42 + echo This is file a1
43 + hg add a
22 + hg add a
44 + hg commit -m 'commit #0' -d '0 0'
23 + hg commit -m commit #0 -d 0 0
45 + echo This is file b1
46 + hg add b
24 + hg add b
47 + hg commit -m 'commit #1' -d '0 0'
25 + hg commit -m commit #1 -d 0 0
48 + echo This is file b22
26 + hg commit -m commit #2 -d 0 0
49 + hg commit -m 'commit #2' -d '0 0'
50 + hg update 1
27 + hg update 1
51 + echo This is file c1
52 + hg add c
28 + hg add c
53 + hg commit -m 'commit #3' -d '0 0'
29 + hg commit -m commit #3 -d 0 0
54 + cat b
55 This is file b1
30 This is file b1
56 + echo This is file b22
31 + hg update -m 2
57 + env HGMERGE=../merge hg update -m 2
58 merging for b
32 merging for b
59 merging b
33 merging b
60 + cd ..
61 + /bin/rm -rf t
62 + mkdir t
63 + cd t
64 + hg init
34 + hg init
65 + echo This is file a1
66 + hg add a
35 + hg add a
67 + hg commit -m 'commit #0' -d '0 0'
36 + hg commit -m commit #0 -d 0 0
68 + echo This is file b1
69 + hg add b
37 + hg add b
70 + hg commit -m 'commit #1' -d '0 0'
38 + hg commit -m commit #1 -d 0 0
71 + echo This is file b22
39 + hg commit -m commit #2 -d 0 0
72 + hg commit -m 'commit #2' -d '0 0'
73 + hg update 1
40 + hg update 1
74 + echo This is file c1
75 + hg add c
41 + hg add c
76 + hg commit -m 'commit #3' -d '0 0'
42 + hg commit -m commit #3 -d 0 0
77 + echo This is file b33
43 + hg update -m 2
78 + env HGMERGE=../merge hg update -m 2
79 merging for b
44 merging for b
80 merging b
45 merging b
81 + cd ..
82 + /bin/rm -rf t
@@ -1,49 +1,25 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo This is file a1
5 + hg add a
2 + hg add a
6 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
7 + echo This is file b1
8 + hg add b
4 + hg add b
9 + hg commit -m 'commit #1' -d '0 0'
5 + hg commit -m commit #1 -d 0 0
10 + rm b
11 + hg update 0
6 + hg update 0
12 + echo This is file b2
13 + hg add b
7 + hg add b
14 + hg commit -m 'commit #2' -d '0 0'
8 + hg commit -m commit #2 -d 0 0
15 + cd ..
16 + /bin/rm -rf t
17 + mkdir t
18 + cd t
19 + hg init
9 + hg init
20 + echo This is file a1
21 + hg add a
10 + hg add a
22 + hg commit -m 'commit #0' -d '0 0'
11 + hg commit -m commit #0 -d 0 0
23 + echo This is file b1
24 + hg add b
12 + hg add b
25 + hg commit -m 'commit #1' -d '0 0'
13 + hg commit -m commit #1 -d 0 0
26 + rm b
27 + hg update 0
14 + hg update 0
28 + echo This is file b2
15 + hg commit -A -m commit #2 -d 0 0
29 + hg commit -A -m 'commit #2' -d '0 0'
30 adding b
16 adding b
31 + cd ..
32 + /bin/rm -rf t
33 + mkdir t
34 + cd t
35 + hg init
17 + hg init
36 + echo This is file a1
37 + hg add a
18 + hg add a
38 + hg commit -m 'commit #0' -d '0 0'
19 + hg commit -m commit #0 -d 0 0
39 + echo This is file b1
40 + hg add b
20 + hg add b
41 + hg commit -m 'commit #1' -d '0 0'
21 + hg commit -m commit #1 -d 0 0
42 + rm b
43 + hg remove b
22 + hg remove b
44 + hg update 0
23 + hg update 0
45 + echo This is file b2
24 + hg commit -A -m commit #2 -d 0 0
46 + hg commit -A -m 'commit #2' -d '0 0'
47 adding b
25 adding b
48 + cd ..
49 + /bin/rm -rf t
@@ -1,11 +1,8 b''
1 + hg init
1 + hg init
2 + echo This is file a1
3 + hg add a
2 + hg add a
4 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
5 + touch b
6 + hg add b
4 + hg add b
7 + rm b
5 + hg commit -A -mcomment #1 -d 0 0
8 + hg commit -A '-mcomment #1' -d '0 0'
9 adding .out
10 removing b
6 removing b
11 b never committed!
7 b never committed!
8 nothing changed
@@ -1,15 +1,10 b''
1 + hg init
1 + hg init
2 + echo This is file a1
3 + hg add a
2 + hg add a
4 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
5 + echo This is file b1
6 + hg add b
4 + hg add b
7 + hg commit -m 'commit #1' -d '0 0'
5 + hg commit -m commit #1 -d 0 0
8 + hg update 0
6 + hg update 0
9 + echo This is file c1
10 + hg add c
7 + hg add c
11 + hg commit -m 'commit #2' -d '0 0'
8 + hg commit -m commit #2 -d 0 0
12 + hg update -m 1
9 + hg update -m 1
13 + rm b
10 + hg commit -m commit #3 -d 0 0
14 + echo This is file c22
15 + hg commit -m 'commit #3' -d '0 0'
@@ -1,20 +1,12 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo This is file a1
5 + echo This is file b1
6 + hg add a b
2 + hg add a b
7 + hg commit -m 'commit #0' -d '0 0'
3 + hg commit -m commit #0 -d 0 0
8 + echo This is file b22
4 + hg commit -mcomment #1 -d 0 0
9 + hg commit '-mcomment #1' -d '0 0'
10 + hg update 0
5 + hg update 0
11 + rm b
6 + hg commit -A -mcomment #2 -d 0 0
12 + hg commit -A '-mcomment #2' -d '0 0'
13 removing b
7 removing b
14 + yes k
15 + hg update 1
8 + hg update 1
16 this update spans a branch affecting the following files:
9 this update spans a branch affecting the following files:
17 b
10 b
18 aborting update spanning branches!
11 aborting update spanning branches!
19 (use update -m to perform a branch merge)
12 (use update -m to perform a branch merge)
20 + exit 0
@@ -1,27 +1,12 b''
1 + cat
2 + chmod +x merge
3 + export HGMERGE=./merge
4 + HGMERGE=./merge
5 + mkdir A1
6 + cd A1
7 + hg init
1 + hg init
8 + echo This is file foo1
9 + echo This is file bar1
10 + hg add foo bar
2 + hg add foo bar
11 + hg commit -m 'commit text' -d '0 0'
3 + hg commit -m commit text -d 0 0
12 + cd ..
13 + hg clone A1 B1
4 + hg clone A1 B1
14 + cd A1
15 + rm bar
16 + hg remove bar
5 + hg remove bar
17 + hg commit -m 'commit test' -d '0 0'
6 + hg commit -m commit test -d 0 0
18 + cd ../B1
7 + hg commit -m commit test -d 0 0
19 + echo This is file foo22
20 + hg commit -m 'commit test' -d '0 0'
21 + cd ..
22 + hg clone A1 A2
8 + hg clone A1 A2
23 + hg clone B1 B2
9 + hg clone B1 B2
24 + cd A1
25 + hg pull ../B1
10 + hg pull ../B1
26 pulling from ../B1
11 pulling from ../B1
27 searching for changes
12 searching for changes
@@ -31,12 +16,10 b' adding file changes'
31 added 1 changesets with 1 changes to 1 files
16 added 1 changesets with 1 changes to 1 files
32 (run 'hg update' to get a working copy)
17 (run 'hg update' to get a working copy)
33 + hg update -m
18 + hg update -m
34 + hg commit -m 'commit test' -d '0 0'
19 + hg commit -m commit test -d 0 0
35 + echo bar should remain deleted.
36 bar should remain deleted.
20 bar should remain deleted.
37 + hg manifest
21 + hg manifest
38 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
22 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
39 + cd ../B2
40 + hg pull ../A2
23 + hg pull ../A2
41 pulling from ../A2
24 pulling from ../A2
42 searching for changes
25 searching for changes
@@ -46,8 +29,7 b' adding file changes'
46 added 1 changesets with 0 changes to 0 files
29 added 1 changesets with 0 changes to 0 files
47 (run 'hg update' to get a working copy)
30 (run 'hg update' to get a working copy)
48 + hg update -m
31 + hg update -m
49 + hg commit -m 'commit test' -d '0 0'
32 + hg commit -m commit test -d 0 0
50 + echo bar should remain deleted.
51 bar should remain deleted.
33 bar should remain deleted.
52 + hg manifest
34 + hg manifest
53 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
35 6b70e9e451a5a33faad7bbebe627e46b937b7364 644 foo
@@ -1,21 +1,30 b''
1 + hg init
2 + hg addremove
1 adding foo
3 adding foo
4 + hg commit -m 1
5 + hg verify
2 checking changesets
6 checking changesets
3 checking manifests
7 checking manifests
4 crosschecking files in changesets and manifests
8 crosschecking files in changesets and manifests
5 checking files
9 checking files
6 1 files, 1 changesets, 1 total revisions
10 1 files, 1 changesets, 1 total revisions
11 + hg clone http://localhost:20059/ copy
7 requesting all changes
12 requesting all changes
8 adding changesets
13 adding changesets
9 adding manifests
14 adding manifests
10 adding file changes
15 adding file changes
11 added 1 changesets with 1 changes to 1 files
16 added 1 changesets with 1 changes to 1 files
17 + hg verify
12 checking changesets
18 checking changesets
13 checking manifests
19 checking manifests
14 crosschecking files in changesets and manifests
20 crosschecking files in changesets and manifests
15 checking files
21 checking files
16 1 files, 1 changesets, 1 total revisions
22 1 files, 1 changesets, 1 total revisions
23 + hg co
17 foo
24 foo
25 + hg manifest
18 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
26 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo
27 + hg pull
19 pulling from http://localhost:20059/
28 pulling from http://localhost:20059/
20 searching for changes
29 searching for changes
21 no changes found
30 no changes found
@@ -1,15 +1,12 b''
1 + hg --debug init
1 + hg --debug init
2 + echo this is a1
3 + hg add a
2 + hg add a
4 + hg commit -m0 -d '0 0'
3 + hg commit -m0 -d 0 0
5 + echo this is b1
6 + hg add b
4 + hg add b
7 + hg commit -m1 -d '0 0'
5 + hg commit -m1 -d 0 0
8 + hg manifest 1
6 + hg manifest 1
9 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
7 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
10 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
8 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
11 + echo this is c1
9 + hg rawcommit -p 1 -d 0 0 -m2 c
12 + hg rawcommit -p 1 -d '0 0' -m2 c
13 + hg manifest 2
10 + hg manifest 2
14 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
11 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
15 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
12 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
@@ -21,8 +18,7 b' user: test'
21 date: Thu Jan 1 00:00:00 1970
18 date: Thu Jan 1 00:00:00 1970
22 summary: 2
19 summary: 2
23
20
24 + rm b
21 + hg rawcommit -p 2 -d 0 0 -m3 b
25 + hg rawcommit -p 2 -d '0 0' -m3 b
26 + hg manifest 3
22 + hg manifest 3
27 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
23 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
28 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
24 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
@@ -33,8 +29,7 b' user: test'
33 date: Thu Jan 1 00:00:00 1970
29 date: Thu Jan 1 00:00:00 1970
34 summary: 3
30 summary: 3
35
31
36 + echo this is a22
32 + hg rawcommit -p 3 -d 0 0 -m4 a
37 + hg rawcommit -p 3 -d '0 0' -m4 a
38 + hg manifest 4
33 + hg manifest 4
39 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
34 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
40 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
35 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
@@ -45,8 +40,7 b' user: test'
45 date: Thu Jan 1 00:00:00 1970
40 date: Thu Jan 1 00:00:00 1970
46 summary: 4
41 summary: 4
47
42
48 + echo this is c22
43 + hg rawcommit -p 1 -d 0 0 -m5 c
49 + hg rawcommit -p 1 -d '0 0' -m5 c
50 + hg manifest 5
44 + hg manifest 5
51 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
45 05f9e54f4c9b86b09099803d8b49a50edcb4eaab 644 a
52 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
46 54837d97f2932a8194e69745a280a2c11e61ff9c 644 b
@@ -57,7 +51,7 b' user: test'
57 date: Thu Jan 1 00:00:00 1970
51 date: Thu Jan 1 00:00:00 1970
58 summary: 4
52 summary: 4
59
53
60 + hg rawcommit -p 4 -p 5 -d '0 0' -m6
54 + hg rawcommit -p 4 -p 5 -d 0 0 -m6
61 + hg manifest 6
55 + hg manifest 6
62 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
56 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
63 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
57 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
@@ -70,7 +64,7 b' user: test'
70 date: Thu Jan 1 00:00:00 1970
64 date: Thu Jan 1 00:00:00 1970
71 summary: 6
65 summary: 6
72
66
73 + hg rawcommit -p 6 -d '0 0' -m7
67 + hg rawcommit -p 6 -d 0 0 -m7
74 + hg manifest 7
68 + hg manifest 7
75 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
69 d6e3c4976c13feb1728cd3ac851abaf7256a5c23 644 a
76 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
70 76d5e637cbec1bcc04a5a3fa4bcc7d13f6847c00 644 c
@@ -1,6 +1,3 b''
1 + mkdir test
2 + cd test
3 + echo foo
4 + hg init
1 + hg init
5 + hg addremove
2 + hg addremove
6 adding foo
3 adding foo
@@ -12,11 +9,8 b' crosschecking files in changesets and ma'
12 checking files
9 checking files
13 1 files, 1 changesets, 1 total revisions
10 1 files, 1 changesets, 1 total revisions
14 + hg clone . ../branch
11 + hg clone . ../branch
15 + cd ../branch
16 + hg co
12 + hg co
17 + echo bar
18 + hg commit -m 2
13 + hg commit -m 2
19 + cd ../test
20 + hg pull ../branch
14 + hg pull ../branch
21 pulling from ../branch
15 pulling from ../branch
22 searching for changes
16 searching for changes
@@ -32,7 +26,6 b' crosschecking files in changesets and ma'
32 checking files
26 checking files
33 1 files, 2 changesets, 2 total revisions
27 1 files, 2 changesets, 2 total revisions
34 + hg co
28 + hg co
35 + cat foo
36 foo
29 foo
37 bar
30 bar
38 + hg manifest
31 + hg manifest
@@ -1,7 +1,6 b''
1 + hg init
1 + hg init
2 + echo a
3 + hg add a
2 + hg add a
4 + hg commit -m test -d '0 0'
3 + hg commit -m test -d 0 0
5 + hg history
4 + hg history
6 changeset: 0:acb14030fe0a
5 changeset: 0:acb14030fe0a
7 tag: tip
6 tag: tip
@@ -9,7 +8,7 b' user: test'
9 date: Thu Jan 1 00:00:00 1970
8 date: Thu Jan 1 00:00:00 1970
10 summary: test
9 summary: test
11
10
12 + hg tag -d '0 0' bleah
11 + hg tag -d 0 0 bleah
13 + hg history
12 + hg history
14 changeset: 1:863197ef0378
13 changeset: 1:863197ef0378
15 tag: tip
14 tag: tip
@@ -23,9 +22,7 b' user: test'
23 date: Thu Jan 1 00:00:00 1970
22 date: Thu Jan 1 00:00:00 1970
24 summary: test
23 summary: test
25
24
26 + echo foo
25 + hg tag -d 0 0 bleah2
27 + hg tag -d '0 0' bleah2
28 abort: working copy of .hgtags is changed!
26 abort: working copy of .hgtags is changed!
29 (please commit .hgtags manually)
27 (please commit .hgtags manually)
30 + echo failed
31 failed
28 failed
@@ -1,32 +1,25 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + hg id
2 + hg id
5 unknown
3 unknown
6 + echo a
7 + hg add a
4 + hg add a
8 + hg commit -m test -d '0 0'
5 + hg commit -m test -d 0 0
9 + hg co
6 + hg co
10 + hg identify
7 + hg identify
11 acb14030fe0a tip
8 acb14030fe0a tip
12 ++ hg -q tip
9 + hg -q tip
13 ++ cut -d : -f 2
14 + T=acb14030fe0a21b60322c440ad2d20cf7685a376
15 + echo 'acb14030fe0a21b60322c440ad2d20cf7685a376 first'
16 + cat .hgtags
17 acb14030fe0a21b60322c440ad2d20cf7685a376 first
10 acb14030fe0a21b60322c440ad2d20cf7685a376 first
18 + hg add .hgtags
11 + hg add .hgtags
19 + hg commit -m 'add tags' -d '0 0'
12 + hg commit -m add tags -d 0 0
20 + hg tags
13 + hg tags
21 tip 1:b9154636be938d3d431e75a7c906504a079bfe07
14 tip 1:b53d0e1f3043ecbccf1b9ad2cea562c1b50462b2
22 first 0:acb14030fe0a21b60322c440ad2d20cf7685a376
15 first 0:acb14030fe0a21b60322c440ad2d20cf7685a376
16 hg -q tip ?:?
23 + hg identify
17 + hg identify
24 b9154636be93 tip
18 b53d0e1f3043 tip
25 + echo bb
26 + hg status
19 + hg status
27 M a
20 M a
28 + hg identify
21 + hg identify
29 b9154636be93+ tip
22 b53d0e1f3043+ tip
30 + hg co first
23 + hg co first
31 + hg id
24 + hg id
32 acb14030fe0a+ first
25 acb14030fe0a+ first
@@ -34,14 +27,13 b' acb14030fe0a+ first'
34 acb14030fe0a21b60322c440ad2d20cf7685a376+ first
27 acb14030fe0a21b60322c440ad2d20cf7685a376+ first
35 + hg status
28 + hg status
36 M a
29 M a
37 + echo 1
38 + hg add b
30 + hg add b
39 + hg commit -m branch -d '0 0'
31 + hg commit -m branch -d 0 0
40 + hg id
32 + hg id
41 c8edf04160c7 tip
33 c8edf04160c7 tip
42 + hg co -m 1
34 + hg co -m 1
43 + hg id
35 + hg id
44 c8edf04160c7+b9154636be93+ tip
36 c8edf04160c7+b53d0e1f3043+ tip
45 + hg status
37 + hg status
46 M .hgtags
38 M .hgtags
47 M a
39 M a
@@ -1,9 +1,6 b''
1 + mkdir t
2 + cd t
3 + hg init
1 + hg init
4 + echo a
5 + hg add a
2 + hg add a
6 + hg commit -m test -d '0 0'
3 + hg commit -m test -d 0 0
7 + hg verify
4 + hg verify
8 checking changesets
5 checking changesets
9 checking manifests
6 checking manifests
@@ -1,3 +1,10 b''
1 + hg init
2 + hg add a
3 + hg commit -m a -u a -d 0 0
4 + hg init
5 + hg add b
6 + hg commit -m b -u b -d 0 0
7 + hg pull ../a
1 pulling from ../a
8 pulling from ../a
2 searching for changes
9 searching for changes
3 warning: pulling from an unrelated repository!
10 warning: pulling from an unrelated repository!
@@ -6,6 +13,7 b' adding manifests'
6 adding file changes
13 adding file changes
7 added 1 changesets with 1 changes to 1 files
14 added 1 changesets with 1 changes to 1 files
8 (run 'hg update' to get a working copy)
15 (run 'hg update' to get a working copy)
16 + hg heads
9 changeset: 1:9a79c33a9db3
17 changeset: 1:9a79c33a9db3
10 tag: tip
18 tag: tip
11 user: a
19 user: a
@@ -1,29 +1,19 b''
1 + mkdir r1
2 + cd r1
3 + hg init
1 + hg init
4 + echo a
5 + hg addremove
2 + hg addremove
6 adding a
3 adding a
7 + hg commit -m 1 -d '0 0'
4 + hg commit -m 1 -d 0 0
8 + hg clone . ../r2
5 + hg clone . ../r2
9 + cd ../r2
10 + hg up
6 + hg up
11 + echo abc
12 + hg diff
7 + hg diff
13 + sed 's/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/'
14 diff -r c19d34741b0a a
8 diff -r c19d34741b0a a
15 --- a/a
9 --- a/a
16 +++ b/a
10 +++ b/a
17 @@ -1,1 +1,1 @@
11 @@ -1,1 +1,1 @@
18 -a
12 -a
19 +abc
13 +abc
20 + cd ../r1
21 + echo b
22 + echo a2
23 + hg addremove
14 + hg addremove
24 adding b
15 adding b
25 + hg commit -m 2 -d '0 0'
16 + hg commit -m 2 -d 0 0
26 + cd ../r2
27 + hg -q pull ../r1
17 + hg -q pull ../r1
28 + hg status
18 + hg status
29 M a
19 M a
@@ -67,7 +57,6 b' 1'
67
57
68
58
69 + hg diff
59 + hg diff
70 + sed 's/\(\(---\|+++\) [^ \t]*\)[ \t].*/\1/'
71 diff -r 1e71731e6fbb a
60 diff -r 1e71731e6fbb a
72 --- a/a
61 --- a/a
73 +++ b/a
62 +++ b/a
General Comments 0
You need to be logged in to leave comments. Login now