[PATCH 1 of 1] convert should use default value when CVS_RSH is not set, that value being 'ssh'

Konstantinos Koukopoulos koukopoulos at gmail.com
Tue Jan 15 06:03:42 CST 2008


# HG changeset patch
# User Kostantinos Koukopoulos <kouk at noc.uoa.gr>
# Date 1200396599 -7200
# Node ID bb8db67cbefe10043ac1ec751261e2fc399ea7b1
# Parent  e7ed5d07cc4c987a5c9e3fbb5476acbf5cb76d1f
convert should use default value when CVS_RSH is not set, that value 
being 'ssh'.

diff -r e7ed5d07cc4c -r bb8db67cbefe hgext/convert/cvs.py
--- a/hgext/convert/cvs.py	Fri Jan 11 23:30:56 2008 +0200
+++ b/hgext/convert/cvs.py	Tue Jan 15 13:29:59 2008 +0200
@@ -179,7 +179,7 @@ class convert_cvs(converter_source):
 
         if conntype != "pserver":
             if conntype == "rsh":
-                rsh = os.environ.get("CVS_RSH" or "rsh")
+                rsh = os.environ.get("CVS_RSH") or "ssh"
                 if user:
                     cmd = [rsh, '-l', user, host] + cmd
                 else:


More information about the Mercurial-devel mailing list