diff --git a/tests/test-bad-pull.out b/tests/test-bad-pull.out --- a/tests/test-bad-pull.out +++ b/tests/test-bad-pull.out @@ -1,9 +1,6 @@ + hg clone http://localhost:20059/ copy requesting all changes -adding changesets abort: error 111: Connection refused -transaction abort! -rollback completed + echo 255 255 + ls copy @@ -13,10 +10,7 @@ ls: copy: No such file or directory + sleep 2 + hg clone http://localhost:20059/foo copy2 requesting all changes -adding changesets abort: HTTP Error 404: File not found -transaction abort! -rollback completed + echo 255 255 + set +x diff --git a/tests/test-clone-failure.out b/tests/test-clone-failure.out --- a/tests/test-clone-failure.out +++ b/tests/test-clone-failure.out @@ -1,21 +1,17 @@ + hg clone a b -abort: No such file or directory: a +abort: repository a/.hg not found! + echo 255 255 + hg clone http://127.0.0.1:3121/a b requesting all changes -adding changesets abort: error 111: Connection refused -transaction abort! -rollback completed + echo 255 255 + rm -rf b + mkdir a + chmod 000 a + hg clone a b -cp: cannot stat `a/.hg': Permission denied -abort: cp exited with status 1 +abort: repository a/.hg not found! + echo 255 255 + mkdir b @@ -30,8 +26,7 @@ 1 + rm -rf a b + mkfifo a + hg clone a b -cp: cannot stat `a/.hg': Not a directory -abort: cp exited with status 1 +abort: repository a/.hg not found! + echo 255 255 + rm a diff --git a/tests/test-clone.out b/tests/test-clone.out --- a/tests/test-clone.out +++ b/tests/test-clone.out @@ -5,6 +5,7 @@ + hg add a + hg commit -t test -u test -d '0 0' + hg clone . ../b +cloning by hardlink + cd ../b + cat a a @@ -15,6 +16,7 @@ crosschecking files in changesets and ma checking files 1 files, 1 changesets, 1 total revisions + hg clone -U . ../c +cloning by hardlink + cd ../c + cat a cat: a: No such file or directory @@ -27,6 +29,7 @@ 1 files, 1 changesets, 1 total revisions + mkdir ../d + cd ../d + hg clone ../a +cloning by hardlink + cd a + hg cat a a diff --git a/tests/test-hup b/tests/test-hup new file mode 100644 --- /dev/null +++ b/tests/test-hup @@ -0,0 +1,16 @@ +#!/bin/sh + +hg init +mkfifo p + +hg serve --stdio < p & +P=$! +(echo lock; echo addchangegroup; sleep 5) > p & +Q=$! +sleep 1 +kill -HUP $P +sleep 1 +ls .hg + + + diff --git a/tests/test-hup.out b/tests/test-hup.out new file mode 100644 --- /dev/null +++ b/tests/test-hup.out @@ -0,0 +1,10 @@ +0 +0 +adding changesets +killed! +transaction abort! +rollback completed +00changelog.d +00changelog.i +data +undo.dirstate diff --git a/tests/test-merge6.out b/tests/test-merge6.out --- a/tests/test-merge6.out +++ b/tests/test-merge6.out @@ -11,6 +11,7 @@ + hg commit -t 'commit text' -d '0 0' -u user + cd .. + hg clone A1 B1 +cloning by hardlink + cd A1 + rm bar + hg remove bar @@ -20,7 +21,9 @@ + hg commit -t 'commit test' -d '0 0' -u user + cd .. + hg clone A1 A2 +cloning by hardlink + hg clone B1 B2 +cloning by hardlink + cd A1 + hg pull ../B1 pulling from ../B1 diff --git a/tests/test-pull b/tests/test-pull --- a/tests/test-pull +++ b/tests/test-pull @@ -7,7 +7,7 @@ hg init hg addremove hg commit -t "1" hg verify -hg serve -p 20059 >/dev/null 2>&1 & +hg serve -p 20059 > /dev/null & cd .. hg clone http://localhost:20059/ copy diff --git a/tests/test-pull.out b/tests/test-pull.out --- a/tests/test-pull.out +++ b/tests/test-pull.out @@ -18,3 +18,4 @@ 2ed2a3912a0b24502043eae84ee4b279c18b90dd pulling from http://localhost:20059/ searching for changes no changes found +killed! diff --git a/tests/test-simple-update.out b/tests/test-simple-update.out --- a/tests/test-simple-update.out +++ b/tests/test-simple-update.out @@ -11,6 +11,7 @@ crosschecking files in changesets and ma checking files 1 files, 1 changesets, 1 total revisions + hg clone . ../branch +cloning by hardlink + cd ../branch + hg co + echo bar diff --git a/tests/test-up-local-change.out b/tests/test-up-local-change.out --- a/tests/test-up-local-change.out +++ b/tests/test-up-local-change.out @@ -5,6 +5,7 @@ + hg addremove + hg commit -t 1 -u test -d '0 0' + hg clone . ../r2 +cloning by hardlink + cd ../r2 + hg up + echo abc