fix typo in sshargs
authorSteve Borho <steve@borho.org>
Thu, 13 Dec 2007 14:25:51 -0600
changeset 5646 c722bd73c948
parent 5645 1f044b04fa0a
child 5647 165cda754d9e
child 5674 659955e2e366
fix typo in sshargs the original typo dated back to early 2005
mercurial/util.py
--- 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"""