diff tests/test-mq-qimport @ 7158:d1d011accf94

mq: let qimport read patches from URLs
author Brendan Cully <brendan@kublai.com>
date Sat, 18 Oct 2008 16:40:01 -0700
parents 05ec27530d04
children 1b7b21b634f2
line wrap: on
line diff
--- a/tests/test-mq-qimport	Sat Oct 18 16:33:10 2008 -0700
+++ b/tests/test-mq-qimport	Sat Oct 18 16:40:01 2008 -0700
@@ -27,6 +27,15 @@
 echo % qimport non-existing-file
 hg qimport non-existing-file
 
+echo % import URL
+echo foo >> foo
+hg add foo
+hg diff > $HGTMP/url.diff
+hg revert --no-backup foo
+rm foo
+hg qimport file://$HGTMP/url.diff
+hg qun
+
 echo % build diff with CRLF
 python ../writelines.py b 5 'a\n' 5 'a\r\n'
 hg ci -Am addb