comparison hgext/mq.py @ 20402:a8c0f7b80e00

mq: fix qimport url check
author Matt Mackall <mpm@selenic.com>
date Sun, 09 Feb 2014 17:30:49 -0600
parents a817964e7fdf
children 8524cdf66a12
comparison
equal deleted inserted replaced
20401:906358d0350e 20402:a8c0f7b80e00
1984 if existing: 1984 if existing:
1985 if filename == '-': 1985 if filename == '-':
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)
1996 1997
1997 self.ui.write(_('renaming %s to %s\n') 1998 self.ui.write(_('renaming %s to %s\n')