##// END OF EJS Templates
Update tests
Matt Mackall -
r642:5d6177b7 default
parent child Browse files
Show More
@@ -0,0 +1,16 b''
1 #!/bin/sh
2
3 hg init
4 mkfifo p
5
6 hg serve --stdio < p &
7 P=$!
8 (echo lock; echo addchangegroup; sleep 5) > p &
9 Q=$!
10 sleep 1
11 kill -HUP $P
12 sleep 1
13 ls .hg
14
15
16
@@ -0,0 +1,10 b''
1 0
2 0
3 adding changesets
4 killed!
5 transaction abort!
6 rollback completed
7 00changelog.d
8 00changelog.i
9 data
10 undo.dirstate
@@ -1,9 +1,6 b''
1 + hg clone http://localhost:20059/ copy
1 + hg clone http://localhost:20059/ copy
2 requesting all changes
2 requesting all changes
3 adding changesets
4 abort: error 111: Connection refused
3 abort: error 111: Connection refused
5 transaction abort!
6 rollback completed
7 + echo 255
4 + echo 255
8 255
5 255
9 + ls copy
6 + ls copy
@@ -13,10 +10,7 b' ls: copy: No such file or directory'
13 + sleep 2
10 + sleep 2
14 + hg clone http://localhost:20059/foo copy2
11 + hg clone http://localhost:20059/foo copy2
15 requesting all changes
12 requesting all changes
16 adding changesets
17 abort: HTTP Error 404: File not found
13 abort: HTTP Error 404: File not found
18 transaction abort!
19 rollback completed
20 + echo 255
14 + echo 255
21 255
15 255
22 + set +x
16 + set +x
@@ -1,21 +1,17 b''
1 + hg clone a b
1 + hg clone a b
2 abort: No such file or directory: a
2 abort: repository a/.hg not found!
3 + echo 255
3 + echo 255
4 255
4 255
5 + hg clone http://127.0.0.1:3121/a b
5 + hg clone http://127.0.0.1:3121/a b
6 requesting all changes
6 requesting all changes
7 adding changesets
8 abort: error 111: Connection refused
7 abort: error 111: Connection refused
9 transaction abort!
10 rollback completed
11 + echo 255
8 + echo 255
12 255
9 255
13 + rm -rf b
10 + rm -rf b
14 + mkdir a
11 + mkdir a
15 + chmod 000 a
12 + chmod 000 a
16 + hg clone a b
13 + hg clone a b
17 cp: cannot stat `a/.hg': Permission denied
14 abort: repository a/.hg not found!
18 abort: cp exited with status 1
19 + echo 255
15 + echo 255
20 255
16 255
21 + mkdir b
17 + mkdir b
@@ -30,8 +26,7 b' 1'
30 + rm -rf a b
26 + rm -rf a b
31 + mkfifo a
27 + mkfifo a
32 + hg clone a b
28 + hg clone a b
33 cp: cannot stat `a/.hg': Not a directory
29 abort: repository a/.hg not found!
34 abort: cp exited with status 1
35 + echo 255
30 + echo 255
36 255
31 255
37 + rm a
32 + rm a
@@ -5,6 +5,7 b''
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 clone . ../b
7 + hg clone . ../b
8 cloning by hardlink
8 + cd ../b
9 + cd ../b
9 + cat a
10 + cat a
10 a
11 a
@@ -15,6 +16,7 b' crosschecking files in changesets and ma'
15 checking files
16 checking files
16 1 files, 1 changesets, 1 total revisions
17 1 files, 1 changesets, 1 total revisions
17 + hg clone -U . ../c
18 + hg clone -U . ../c
19 cloning by hardlink
18 + cd ../c
20 + cd ../c
19 + cat a
21 + cat a
20 cat: a: No such file or directory
22 cat: a: No such file or directory
@@ -27,6 +29,7 b' 1 files, 1 changesets, 1 total revisions'
27 + mkdir ../d
29 + mkdir ../d
28 + cd ../d
30 + cd ../d
29 + hg clone ../a
31 + hg clone ../a
32 cloning by hardlink
30 + cd a
33 + cd a
31 + hg cat a
34 + hg cat a
32 a
35 a
@@ -11,6 +11,7 b''
11 + hg commit -t 'commit text' -d '0 0' -u user
11 + hg commit -t 'commit text' -d '0 0' -u user
12 + cd ..
12 + cd ..
13 + hg clone A1 B1
13 + hg clone A1 B1
14 cloning by hardlink
14 + cd A1
15 + cd A1
15 + rm bar
16 + rm bar
16 + hg remove bar
17 + hg remove bar
@@ -20,7 +21,9 b''
20 + hg commit -t 'commit test' -d '0 0' -u user
21 + hg commit -t 'commit test' -d '0 0' -u user
21 + cd ..
22 + cd ..
22 + hg clone A1 A2
23 + hg clone A1 A2
24 cloning by hardlink
23 + hg clone B1 B2
25 + hg clone B1 B2
26 cloning by hardlink
24 + cd A1
27 + cd A1
25 + hg pull ../B1
28 + hg pull ../B1
26 pulling from ../B1
29 pulling from ../B1
@@ -7,7 +7,7 b' 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 >/dev/null 2>&1 &
10 hg serve -p 20059 > /dev/null &
11 cd ..
11 cd ..
12
12
13 hg clone http://localhost:20059/ copy
13 hg clone http://localhost:20059/ copy
@@ -18,3 +18,4 b' 2ed2a3912a0b24502043eae84ee4b279c18b90dd'
18 pulling from http://localhost:20059/
18 pulling from http://localhost:20059/
19 searching for changes
19 searching for changes
20 no changes found
20 no changes found
21 killed!
@@ -11,6 +11,7 b' crosschecking files in changesets and ma'
11 checking files
11 checking files
12 1 files, 1 changesets, 1 total revisions
12 1 files, 1 changesets, 1 total revisions
13 + hg clone . ../branch
13 + hg clone . ../branch
14 cloning by hardlink
14 + cd ../branch
15 + cd ../branch
15 + hg co
16 + hg co
16 + echo bar
17 + echo bar
@@ -5,6 +5,7 b''
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 cloning by hardlink
8 + cd ../r2
9 + cd ../r2
9 + hg up
10 + hg up
10 + echo abc
11 + echo abc
General Comments 0
You need to be logged in to leave comments. Login now