mq: fix qimport url check
authorMatt Mackall <mpm@selenic.com>
Sun, 09 Feb 2014 17:30:49 -0600
changeset 20402 a8c0f7b80e00
parent 20401 906358d0350e
child 20403 47f25736d006
mq: fix qimport url check
hgext/mq.py
--- a/hgext/mq.py	Tue Feb 04 14:54:42 2014 -0500
+++ b/hgext/mq.py	Sun Feb 09 17:30:49 2014 -0600
@@ -1986,10 +1986,11 @@
                     raise util.Abort(_('-e is incompatible with import from -'))
                 filename = normname(filename)
                 self.checkreservedname(filename)
-                if util.url(filename).local():
+                if util.url(filename).islocal():
                     originpath = self.join(filename)
                     if not os.path.isfile(originpath):
-                        raise util.Abort(_("patch %s does not exist") % filename)
+                        raise util.Abort(
+                            _("patch %s does not exist") % filename)
 
                 if patchname:
                     self.checkpatchname(patchname, force)