convert should use default value when CVS_RSH is not set, that value
authorKostantinos Koukopoulos <kouk@noc.uoa.gr>
Tue, 15 Jan 2008 13:29:59 +0200
changeset 5860 493632bb171c
parent 5859 e0f86c1e3ae5
child 5861 b860b116dea4
child 5862 ad08dfad7e7b
convert should use default value when CVS_RSH is not set, that value being 'ssh'.
hgext/convert/cvs.py
--- a/hgext/convert/cvs.py	Tue Jan 15 13:46:32 2008 +0100
+++ b/hgext/convert/cvs.py	Tue Jan 15 13:29:59 2008 +0200
@@ -179,7 +179,7 @@
 
         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: