# HG changeset patch # User Steve Borho # Date 2007-12-13 20:25:51 # Node ID c722bd73c948a1b6ed1fc040275aeded061998b1 # Parent 1f044b04fa0a6cec8ce524fad9c276e78e638d8a fix typo in sshargs the original typo dated back to early 2005 diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -964,7 +964,7 @@ if os.name == 'nt': '''Build argument list for ssh or Plink''' pflag = 'plink' in sshcmd.lower() and '-P' or '-p' args = user and ("%s@%s" % (user, host)) or host - return port and ("%s %s %s") % (args, pflag, port) or args + return port and ("%s %s %s" % (args, pflag, port)) or args def testpid(pid): '''return False if pid dead, True if running or not known''' @@ -1111,7 +1111,7 @@ else: def sshargs(sshcmd, host, user, port): '''Build argument list for ssh''' args = user and ("%s@%s" % (user, host)) or host - return port and ("%s -p %s") % (args, port) or args + return port and ("%s -p %s" % (args, port)) or args def is_exec(f): """check whether a file is executable"""