equal
deleted
inserted
replaced
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): |