equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 mkdir test |
|
4 cd test |
|
5 echo foo>foo |
|
6 hg init |
|
7 hg addremove |
|
8 hg commit -m 1 |
|
9 hg verify |
|
10 hg serve -p $HGPORT -d --pid-file=hg.pid |
|
11 cat hg.pid >> $DAEMON_PIDS |
|
12 cd .. |
|
13 |
|
14 hg clone --pull http://foo:bar@localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/," |
|
15 cd copy |
|
16 hg verify |
|
17 hg co |
|
18 cat foo |
|
19 hg manifest --debug |
|
20 hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/," |
|
21 hg rollback --dry-run --verbose | sed -e "s,:$HGPORT/,:\$HGPORT/," |
|
22 |
|
23 echo % issue 622 |
|
24 cd .. |
|
25 hg init empty |
|
26 cd empty |
|
27 hg pull -u ../test |
|
28 |
|
29 echo % test file: uri handling |
|
30 hg pull -q file://../test-doesnt-exist 2>&1 \ |
|
31 | sed 's%abort: repository.*/test-doesnt-exist%abort: repository /test-doesnt-exist%' |
|
32 hg pull -q file:../test |
|
33 # It's tricky to make file:// URLs working on every platforms |
|
34 # with regular shell commands. |
|
35 URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` |
|
36 hg pull -q "$URL" |
|