diff tests/test-schemes.t @ 18910:b52404a914a9

scheme: don't crash on invalid URLs
author Mads Kiilerich <madski@unity3d.com>
date Thu, 11 Apr 2013 14:41:22 +0200
parents f2719b387380
children 7a9cbb315d84
line wrap: on
line diff
--- a/tests/test-schemes.t	Fri Feb 08 21:08:34 2013 +0000
+++ b/tests/test-schemes.t	Thu Apr 11 14:41:22 2013 +0200
@@ -14,6 +14,15 @@
   $ echo a > a
   $ hg ci -Am initial
   adding a
+
+invalid scheme
+
+  $ hg log -R z:z
+  abort: no '://' in scheme url 'z:z'
+  [255]
+
+http scheme
+
   $ 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://