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