mq: clarify the fact that qimport is trying to read a file
"hg qimport tip" would throw "abort: unable to read tip" before this.
--- a/hgext/mq.py Fri Jul 30 14:41:47 2010 +0900
+++ b/hgext/mq.py Sat Jul 31 10:50:29 2010 +0900
@@ -1702,7 +1702,7 @@
else:
text = url.open(self.ui, filename).read()
except (OSError, IOError):
- raise util.Abort(_("unable to read %s") % filename)
+ raise util.Abort(_("unable to read file %s") % filename)
if not patchname:
patchname = normname(os.path.basename(filename))
self.check_reserved_name(patchname)
--- a/tests/test-mq-qimport-fail-cleanup.out Fri Jul 30 14:41:47 2010 +0900
+++ b/tests/test-mq-qimport-fail-cleanup.out Sat Jul 31 10:50:29 2010 +0900
@@ -4,7 +4,7 @@
#qimport valid patch followed by invalid patch
adding b.patch to series file
-abort: unable to read fakepatch
+abort: unable to read file fakepatch
#valid patches before fail added to series
b.patch
--- a/tests/test-mq-qimport.out Fri Jul 30 14:41:47 2010 +0900
+++ b/tests/test-mq-qimport.out Sat Jul 31 10:50:29 2010 +0900
@@ -1,5 +1,5 @@
% qimport non-existing-file
-abort: unable to read non-existing-file
+abort: unable to read file non-existing-file
% import email
adding email to series file
applying email