mercurial/windows.py
branchstable
changeset 33659 8cb9e921ef8c
parent 33651 739cc0f9cbb4
child 34022 d5b2beca16c0
equal deleted inserted replaced
33658:db83a1df03fe 33659:8cb9e921ef8c
   206     args = user and ("%s@%s" % (user, host)) or host
   206     args = user and ("%s@%s" % (user, host)) or host
   207     if args.startswith('-') or args.startswith('/'):
   207     if args.startswith('-') or args.startswith('/'):
   208         raise error.Abort(
   208         raise error.Abort(
   209             _('illegal ssh hostname or username starting with - or /: %s') %
   209             _('illegal ssh hostname or username starting with - or /: %s') %
   210             args)
   210             args)
   211     return port and ("%s %s %s" % (args, pflag, port)) or args
   211     args = shellquote(args)
       
   212     if port:
       
   213         args = '%s %s %s' % (pflag, shellquote(port), args)
       
   214     return args
   212 
   215 
   213 def setflags(f, l, x):
   216 def setflags(f, l, x):
   214     pass
   217     pass
   215 
   218 
   216 def copymode(src, dst, mode=None):
   219 def copymode(src, dst, mode=None):