Show More
@@ -1,31 +1,35 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | mkdir test |
|
4 | 4 | cd test |
|
5 | 5 | echo foo>foo |
|
6 | 6 | hg init |
|
7 | 7 | hg addremove |
|
8 | 8 | hg commit -m 1 |
|
9 | 9 | hg verify |
|
10 | 10 | hg serve -p $HGPORT -d --pid-file=hg.pid |
|
11 | 11 | cat hg.pid >> $DAEMON_PIDS |
|
12 | 12 | cd .. |
|
13 | 13 | |
|
14 | 14 | hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/," |
|
15 | 15 | cd copy |
|
16 | 16 | hg verify |
|
17 | 17 | hg co |
|
18 | 18 | cat foo |
|
19 | 19 | hg manifest --debug |
|
20 | 20 | hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/," |
|
21 | 21 | |
|
22 | 22 | echo % issue 622 |
|
23 | 23 | cd .. |
|
24 | 24 | hg init empty |
|
25 | 25 | cd empty |
|
26 | 26 | hg pull -u ../test |
|
27 | 27 | |
|
28 | 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 | 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