test-pull
35 lines
| 836 B
| text/plain
|
TextLexer
/ tests / test-pull
Thomas Arendsen Hein
|
r544 | #!/bin/sh | ||
mpm@selenic.com
|
r336 | |||
mkdir test | ||||
cd test | ||||
echo foo>foo | ||||
hg init | ||||
hg addremove | ||||
mpm@selenic.com
|
r749 | hg commit -m 1 | ||
mpm@selenic.com
|
r336 | hg verify | ||
Bryan O'Sullivan
|
r5384 | hg serve -p $HGPORT -d --pid-file=hg.pid | ||
Vadim Gelfer
|
r2571 | cat hg.pid >> $DAEMON_PIDS | ||
mpm@selenic.com
|
r336 | cd .. | ||
Mads Kiilerich
|
r10398 | hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/," | ||
mpm@selenic.com
|
r336 | cd copy | ||
hg verify | ||||
hg co | ||||
cat foo | ||||
Matt Mackall
|
r3736 | hg manifest --debug | ||
Mads Kiilerich
|
r10398 | hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/," | ||
Bryan O'Sullivan
|
r4891 | |||
echo % issue 622 | ||||
cd .. | ||||
hg init empty | ||||
cd empty | ||||
hg pull -u ../test | ||||
Sune Foldager
|
r9996 | |||
echo % test file: uri handling | ||||
Patrick Mezard
|
r10470 | hg pull -q file://../test-doesnt-exist 2>&1 \ | ||
| sed 's%abort: repository.*/test-doesnt-exist%abort: repository /test-doesnt-exist%' | ||||
Sune Foldager
|
r9996 | hg pull -q file:../test | ||
Patrick Mezard
|
r10470 | # It's tricky to make file:// URLs working on every platforms | ||
# with regular shell commands. | ||||
URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` | ||||
Mads Kiilerich
|
r10775 | hg pull -q "$URL" | ||