diff tests/test-mq-qclone-http @ 7525:6a49fa7674c1

hgweb: mq repos should be in non-recursive collections, too
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 19 Dec 2008 18:24:49 +0100
parents 7fc19b12cb6b
children 400ffd5f2f14
line wrap: on
line diff
--- a/tests/test-mq-qclone-http	Fri Dec 19 08:41:46 2008 +0100
+++ b/tests/test-mq-qclone-http	Fri Dec 19 18:24:49 2008 +0100
@@ -22,6 +22,8 @@
 
 cd ..
 
+echo % test with recursive collection
+
 cat > collections.conf <<EOF
 [paths]
 /=$root/**
@@ -38,6 +40,8 @@
 hg --cwd b qpush -a
 hg --cwd b log --template "{desc}\n"
 
+echo % test with normal collection
+
 cat > collections1.conf <<EOF
 [paths]
 /=$root/*
@@ -53,3 +57,21 @@
 hg --cwd c log --template "{desc}\n"
 hg --cwd c qpush -a
 hg --cwd c log --template "{desc}\n"
+
+echo % test with old-style collection
+
+cat > collections2.conf <<EOF
+[collections]
+$root=$root
+EOF
+
+hg serve -p $HGPORT2 -d --pid-file=hg.pid --webdir-conf collections2.conf \
+    -A access-paths.log -E error-paths-1.log
+cat hg.pid >> $DAEMON_PIDS
+
+"$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw'
+
+hg qclone http://localhost:$HGPORT2/a d
+hg --cwd d log --template "{desc}\n"
+hg --cwd d qpush -a
+hg --cwd d log --template "{desc}\n"