diff tests/test-mq-qimport @ 6940:05ec27530d04

qimport: report filename in case of IOError The old behaviour was to say "abort: unable to read" since the patchname variable was always None.
author Martin Geisler <mg@daimi.au.dk>
date Tue, 26 Aug 2008 00:04:18 +0200
parents cee68264ed92
children d1d011accf94
line wrap: on
line diff
--- a/tests/test-mq-qimport	Wed Aug 27 12:49:39 2008 +0200
+++ b/tests/test-mq-qimport	Tue Aug 26 00:04:18 2008 +0200
@@ -21,9 +21,13 @@
 echo "[diff]" >> $HGRCPATH
 echo "git=1" >> $HGRCPATH
 
-echo % build diff with CRLF
 hg init repo
 cd repo
+
+echo % qimport non-existing-file
+hg qimport non-existing-file
+
+echo % build diff with CRLF
 python ../writelines.py b 5 'a\n' 5 'a\r\n'
 hg ci -Am addb
 python ../writelines.py b 2 'a\n' 10 'b\n' 2 'a\r\n'