# HG changeset patch # User Matt Mackall # Date 1262124985 21600 # Node ID df7fc77533fbb22ab7af9f78cd42c44754fe1301 # Parent 000546ec7ced7bda60b06fb3ad5b37209958e8d9# Parent d4a62b6d4a58e8c2a629983caee9f5e2f15d58ee Merge with stable diff -r 000546ec7ced -r df7fc77533fb tests/run-tests.py --- a/tests/run-tests.py Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/run-tests.py Tue Dec 29 16:16:25 2009 -0600 @@ -820,6 +820,7 @@ os.environ["EMAIL"] = "Foo Bar " os.environ['CDPATH'] = '' os.environ['COLUMNS'] = '80' + os.environ['http_proxy'] = '' global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE TESTDIR = os.environ["TESTDIR"] = os.getcwd() diff -r 000546ec7ced -r df7fc77533fb tests/test-archive --- a/tests/test-archive Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-archive Tue Dec 29 16:16:25 2009 -0600 @@ -58,9 +58,9 @@ % (os.environ['HGPORT'], node, archive)) sys.stdout.write(f.read()) EOF -http_proxy= python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" -http_proxy= python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" -http_proxy= python getarchive.py "$TIP" zip > archive.zip +python getarchive.py "$TIP" gz | gunzip | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" +python getarchive.py "$TIP" bz2 | bunzip2 | tar tf - 2>/dev/null | sed "s/$QTIP/TIP/" +python getarchive.py "$TIP" zip > archive.zip unzip -t archive.zip | sed "s/$QTIP/TIP/" "$TESTDIR/killdaemons.py" diff -r 000546ec7ced -r df7fc77533fb tests/test-bad-pull --- a/tests/test-bad-pull Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-bad-pull Tue Dec 29 16:16:25 2009 -0600 @@ -23,7 +23,7 @@ # give the server some time to start running sleep 1 -http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ +hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' echo $? diff -r 000546ec7ced -r df7fc77533fb tests/test-http --- a/tests/test-http Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-http Tue Dec 29 16:16:25 2009 -0600 @@ -19,15 +19,15 @@ cat hg1.pid hg2.pid >> $DAEMON_PIDS echo % clone via stream -http_proxy= hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \ +hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \ sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' hg verify -R copy echo % try to clone via stream, should use pull instead -http_proxy= hg clone --uncompressed http://localhost:$HGPORT1/ copy2 +hg clone --uncompressed http://localhost:$HGPORT1/ copy2 echo % clone via pull -http_proxy= hg clone http://localhost:$HGPORT1/ copy-pull +hg clone http://localhost:$HGPORT1/ copy-pull hg verify -R copy-pull cd test diff -r 000546ec7ced -r df7fc77533fb tests/test-incoming-outgoing --- a/tests/test-incoming-outgoing Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-incoming-outgoing Tue Dec 29 16:16:25 2009 -0600 @@ -14,8 +14,8 @@ hg init new # http incoming -http_proxy= hg -R new incoming http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' -http_proxy= hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' +hg -R new incoming http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' +hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' # local incoming hg -R new incoming test hg -R new incoming -r 4 test @@ -25,7 +25,7 @@ hg -R new incoming -l 2 -p --git test # test with --bundle -http_proxy= hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' +hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' hg -R new incoming --bundle test2.hg test # test the resulting bundles @@ -50,5 +50,5 @@ hg -R test-dev outgoing test echo "% limit to 3 changesets" hg -R test-dev outgoing -l 3 test -http_proxy= hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' -http_proxy= hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' +hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' +hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' diff -r 000546ec7ced -r df7fc77533fb tests/test-pull --- a/tests/test-pull Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-pull Tue Dec 29 16:16:25 2009 -0600 @@ -11,7 +11,7 @@ cat hg.pid >> $DAEMON_PIDS cd .. -http_proxy= hg clone --pull http://localhost:$HGPORT/ copy | sed -e 's,:[0-9][0-9]*/,/,' +hg clone --pull http://localhost:$HGPORT/ copy | sed -e 's,:[0-9][0-9]*/,/,' cd copy hg verify hg co diff -r 000546ec7ced -r df7fc77533fb tests/test-static-http --- a/tests/test-static-http Mon Dec 28 16:48:57 2009 +0100 +++ b/tests/test-static-http Tue Dec 29 16:16:25 2009 -0600 @@ -2,7 +2,7 @@ cp "$TESTDIR"/printenv.py . -http_proxy= hg clone http://localhost:$HGPORT/ copy +hg clone http://localhost:$HGPORT/ copy echo $? test -d copy || echo copy: No such file or directory @@ -34,7 +34,7 @@ cd .. -http_proxy= hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' cd local hg verify @@ -47,13 +47,13 @@ cd ../local echo '[hooks]' >> .hg/hgrc echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc -http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' +hg pull | sed -e 's,:[0-9][0-9]*/,/,' echo '% trying to push' hg update echo more foo >> bar hg commit -m"test" -d "100000000 0" -http_proxy= hg push | sed -e 's,:[0-9][0-9]*/,/,' +hg push | sed -e 's,:[0-9][0-9]*/,/,' echo '% test with "/" URI (issue 747)' cd .. @@ -62,7 +62,7 @@ hg add a hg ci -ma -http_proxy= hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' cd local2 hg verify @@ -73,7 +73,7 @@ cd .. hg init remotempty -http_proxy= hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' cd local3 hg verify @@ -82,6 +82,6 @@ echo '% test with non-repo' cd .. mkdir notarepo -http_proxy= hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' +hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' kill $!