##// END OF EJS Templates
Fix test-pull under Windows
Patrick Mezard -
r10470:2b57eed1 stable
parent child Browse files
Show More
@@ -1,31 +1,35 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 mkdir test
3 mkdir test
4 cd test
4 cd test
5 echo foo>foo
5 echo foo>foo
6 hg init
6 hg init
7 hg addremove
7 hg addremove
8 hg commit -m 1
8 hg commit -m 1
9 hg verify
9 hg verify
10 hg serve -p $HGPORT -d --pid-file=hg.pid
10 hg serve -p $HGPORT -d --pid-file=hg.pid
11 cat hg.pid >> $DAEMON_PIDS
11 cat hg.pid >> $DAEMON_PIDS
12 cd ..
12 cd ..
13
13
14 hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
14 hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
15 cd copy
15 cd copy
16 hg verify
16 hg verify
17 hg co
17 hg co
18 cat foo
18 cat foo
19 hg manifest --debug
19 hg manifest --debug
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
21
21
22 echo % issue 622
22 echo % issue 622
23 cd ..
23 cd ..
24 hg init empty
24 hg init empty
25 cd empty
25 cd empty
26 hg pull -u ../test
26 hg pull -u ../test
27
27
28 echo % test file: uri handling
28 echo % test file: uri handling
29 hg pull -q file://../test-doesnt-exist
29 hg pull -q file://../test-doesnt-exist 2>&1 \
30 | sed 's%abort: repository.*/test-doesnt-exist%abort: repository /test-doesnt-exist%'
30 hg pull -q file:../test
31 hg pull -q file:../test
31 hg pull -q file://foobar`pwd`/../test
32 # It's tricky to make file:// URLs working on every platforms
33 # with regular shell commands.
34 URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
35 hg pull -q $URL
General Comments 0
You need to be logged in to leave comments. Login now