tests/test-mq-qimport.t
changeset 14396 170747a3e139
parent 14395 dc961471efde
child 15446 c5c9ca3719f9
--- a/tests/test-mq-qimport.t	Fri May 20 21:19:33 2011 +0300
+++ b/tests/test-mq-qimport.t	Fri May 20 21:20:24 2011 +0300
@@ -208,3 +208,20 @@
   $ hg qimport non-existant-file --name .hg
   abort: patch name cannot begin with ".hg"
   [255]
+
+qimport http:// patch with leading slashes in url
+
+set up hgweb
+
+  $ cd ..
+  $ hg init served
+  $ cd served
+  $ echo a > a
+  $ hg ci -Am patch
+  adding a
+  $ hg serve -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
+  $ cat hg.pid >> $DAEMON_PIDS
+
+  $ cd ../repo
+  $ hg qimport http://localhost:$HGPORT/raw-rev/0///
+  adding 0 to series file