Mercurial > public > mercurial-scm > hg
diff tests/test-fetch @ 6246:35bf9c23e17a
adjust test-fetch output to non-default HGPORT, e.g. with run-tests.py -j
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 14 Mar 2008 01:39:15 +0100 |
parents | d16798000be0 |
children | a6b74fbb5ce0 |
line wrap: on
line diff
--- a/tests/test-fetch Thu Mar 13 19:50:03 2008 -0300 +++ b/tests/test-fetch Fri Mar 14 01:39:15 2008 +0100 @@ -1,5 +1,9 @@ #!/bin/sh +# adjust to non-default HGPORT, e.g. with run-tests.py -j +hideport() { sed "s/localhost:$HGPORT/localhost:20059/"; } +hidehash() { sed "s/changeset 3:............ merges/changeset 3:... merges/"; } + echo "[extensions]" >> $HGRCPATH echo "fetch=" >> $HGRCPATH @@ -36,12 +40,12 @@ cat a/hg.pid >> "$DAEMON_PIDS" echo '% fetch over http, no auth' -hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/ -hg --cwd d tip --template '{desc}\n' +hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/ | hideport | hidehash +hg --cwd d tip --template '{desc}\n' | hideport echo '% fetch over http with auth (should be hidden in desc)' -hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ -hg --cwd e tip --template '{desc}\n' +hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ | hideport | hidehash +hg --cwd e tip --template '{desc}\n' | hideport hg clone a f hg clone a g