Mercurial > hg
changeset 5646:c722bd73c948
fix typo in sshargs
the original typo dated back to early 2005
author | Steve Borho <steve@borho.org> |
---|---|
date | Thu, 13 Dec 2007 14:25:51 -0600 |
parents | 1f044b04fa0a |
children | 165cda754d9e 659955e2e366 |
files | mercurial/util.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Thu Dec 13 20:35:42 2007 +0100 +++ b/mercurial/util.py Thu Dec 13 14:25:51 2007 -0600 @@ -964,7 +964,7 @@ '''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 @@ 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"""