##// END OF EJS Templates
mq: fix qimport url check
Matt Mackall -
r20402:a8c0f7b8 default
parent child Browse files
Show More
@@ -1986,10 +1986,11 b' class queue(object):'
1986 raise util.Abort(_('-e is incompatible with import from -'))
1986 raise util.Abort(_('-e is incompatible with import from -'))
1987 filename = normname(filename)
1987 filename = normname(filename)
1988 self.checkreservedname(filename)
1988 self.checkreservedname(filename)
1989 if util.url(filename).local():
1989 if util.url(filename).islocal():
1990 originpath = self.join(filename)
1990 originpath = self.join(filename)
1991 if not os.path.isfile(originpath):
1991 if not os.path.isfile(originpath):
1992 raise util.Abort(_("patch %s does not exist") % filename)
1992 raise util.Abort(
1993 _("patch %s does not exist") % filename)
1993
1994
1994 if patchname:
1995 if patchname:
1995 self.checkpatchname(patchname, force)
1996 self.checkpatchname(patchname, force)
General Comments 0
You need to be logged in to leave comments. Login now