##// END OF EJS Templates
adjust test-fetch output to non-default HGPORT, e.g. with run-tests.py -j
Thomas Arendsen Hein -
r6246:35bf9c23 default
parent child Browse files
Show More
@@ -1,5 +1,9 b''
1 1 #!/bin/sh
2 2
3 # adjust to non-default HGPORT, e.g. with run-tests.py -j
4 hideport() { sed "s/localhost:$HGPORT/localhost:20059/"; }
5 hidehash() { sed "s/changeset 3:............ merges/changeset 3:... merges/"; }
6
3 7 echo "[extensions]" >> $HGRCPATH
4 8 echo "fetch=" >> $HGRCPATH
5 9
@@ -36,12 +40,12 b' hg --cwd a serve -a localhost -p $HGPORT'
36 40 cat a/hg.pid >> "$DAEMON_PIDS"
37 41
38 42 echo '% fetch over http, no auth'
39 hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/
40 hg --cwd d tip --template '{desc}\n'
43 hg --cwd d fetch -d '5 0' http://localhost:$HGPORT/ | hideport | hidehash
44 hg --cwd d tip --template '{desc}\n' | hideport
41 45
42 46 echo '% fetch over http with auth (should be hidden in desc)'
43 hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/
44 hg --cwd e tip --template '{desc}\n'
47 hg --cwd e fetch -d '5 0' http://user:password@localhost:$HGPORT/ | hideport | hidehash
48 hg --cwd e tip --template '{desc}\n' | hideport
45 49
46 50 hg clone a f
47 51 hg clone a g
@@ -41,7 +41,7 b' updating to 2:97d72e5f12c7'
41 41 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
42 42 merging with 1:5e056962225c
43 43 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
44 new changeset 3:0b6439e938f9 merges remote changes with local
44 new changeset 3:... merges remote changes with local
45 45 Automated merge with http://localhost:20059/
46 46 % fetch over http with auth (should be hidden in desc)
47 47 pulling from http://user:***@localhost:20059/
@@ -54,7 +54,7 b' updating to 2:97d72e5f12c7'
54 54 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
55 55 merging with 1:5e056962225c
56 56 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
57 new changeset 3:0b6439e938f9 merges remote changes with local
57 new changeset 3:... merges remote changes with local
58 58 Automated merge with http://localhost:20059/
59 59 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
60 60 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now