[PATCH] fix typo in sshargs

Steve Borho steve at borho.org
Thu Dec 13 14:25:56 CST 2007


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1197577551 21600
# Node ID 9bfe1c63cb1784ac9fa37303f100e57845b42faf
# Parent  e2e8e977a6cb08c61894695177747bf451ecd07a
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"""


More information about the Mercurial-devel mailing list