2005-07-01 10:22:27 +04:00
|
|
|
#!/bin/sh
|
2005-06-15 05:30:56 +04:00
|
|
|
|
|
|
|
mkdir test
|
|
|
|
cd test
|
|
|
|
echo foo>foo
|
|
|
|
hg init
|
|
|
|
hg addremove
|
2005-07-22 00:05:17 +04:00
|
|
|
hg commit -m 1
|
2005-06-15 05:30:56 +04:00
|
|
|
hg verify
|
2007-10-05 23:17:01 +04:00
|
|
|
hg serve -p $HGPORT -d --pid-file=hg.pid
|
2006-07-06 22:45:34 +04:00
|
|
|
cat hg.pid >> $DAEMON_PIDS
|
2005-06-15 05:30:56 +04:00
|
|
|
cd ..
|
|
|
|
|
2010-02-08 04:53:41 +03:00
|
|
|
hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/,"
|
2005-06-15 05:30:56 +04:00
|
|
|
cd copy
|
|
|
|
hg verify
|
|
|
|
hg co
|
|
|
|
cat foo
|
2006-12-01 07:38:48 +03:00
|
|
|
hg manifest --debug
|
2010-02-08 04:53:41 +03:00
|
|
|
hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/,"
|
2007-07-17 05:01:20 +04:00
|
|
|
|
|
|
|
echo % issue 622
|
|
|
|
cd ..
|
|
|
|
hg init empty
|
|
|
|
cd empty
|
|
|
|
hg pull -u ../test
|
2009-12-03 13:06:55 +03:00
|
|
|
|
|
|
|
echo % test file: uri handling
|
2010-02-14 21:15:56 +03:00
|
|
|
hg pull -q file://../test-doesnt-exist 2>&1 \
|
|
|
|
| sed 's%abort: repository.*/test-doesnt-exist%abort: repository /test-doesnt-exist%'
|
2009-12-03 13:06:55 +03:00
|
|
|
hg pull -q file:../test
|
2010-02-14 21:15:56 +03:00
|
|
|
# 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'"`
|
|
|
|
hg pull -q $URL
|