hgext/mq.py
changeset 20402 a8c0f7b80e00
parent 20394 a817964e7fdf
child 20442 8524cdf66a12
--- 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)