changeset 20402:a8c0f7b80e00

mq: fix qimport url check
author Matt Mackall <mpm@selenic.com>
date Sun, 09 Feb 2014 17:30:49 -0600
parents 906358d0350e
children 47f25736d006
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)