summaryrefslogtreecommitdiff
path: root/tests/test-schemes.t
diff options
context:
space:
mode:
authorLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
committerLorry <lorry@roadtrain.codethink.co.uk>2012-08-22 14:49:51 +0100
commita498da43c7fdb9f24b73680c02a4a3588cc62d9a (patch)
treedaf8119dae1749b5165b68033a1b23a7375ce9ce /tests/test-schemes.t
downloadmercurial-tarball-a498da43c7fdb9f24b73680c02a4a3588cc62d9a.tar.gz
Tarball conversion
Diffstat (limited to 'tests/test-schemes.t')
-rw-r--r--tests/test-schemes.t50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/test-schemes.t b/tests/test-schemes.t
new file mode 100644
index 0000000..a31ae80
--- /dev/null
+++ b/tests/test-schemes.t
@@ -0,0 +1,50 @@
+ $ "$TESTDIR/hghave" serve || exit 80
+
+ $ cat <<EOF >> $HGRCPATH
+ > [extensions]
+ > schemes=
+ >
+ > [schemes]
+ > l = http://localhost:$HGPORT/
+ > parts = http://{1}:$HGPORT/
+ > z = file:\$PWD/
+ > EOF
+ $ hg init test
+ $ cd test
+ $ echo a > a
+ $ hg ci -Am initial
+ adding a
+ $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+ $ cat hg.pid >> $DAEMON_PIDS
+ $ hg incoming l://
+ comparing with l://
+ searching for changes
+ no changes found
+ [1]
+
+check that {1} syntax works
+
+ $ hg incoming --debug parts://localhost
+ using http://localhost:$HGPORT/
+ sending capabilities command
+ comparing with parts://localhost/
+ query 1; heads
+ sending batch command
+ searching for changes
+ all remote heads known locally
+ no changes found
+ [1]
+
+check that paths are expanded
+
+ $ PWD=`pwd` hg incoming z://
+ comparing with z://
+ searching for changes
+ no changes found
+ [1]
+
+errors
+
+ $ cat errors.log
+
+ $ cd ..