hgext/convert/cvs.py
changeset 30643 1c5cbf28f007
parent 30528 20a42325fdef
child 34165 8860100908eb
equal deleted inserted replaced
30642:344e68882cd3 30643:1c5cbf28f007
   187                 conntype = "rsh"
   187                 conntype = "rsh"
   188                 user, host, root = m.group(1), m.group(2), m.group(3)
   188                 user, host, root = m.group(1), m.group(2), m.group(3)
   189 
   189 
   190         if conntype != "pserver":
   190         if conntype != "pserver":
   191             if conntype == "rsh":
   191             if conntype == "rsh":
   192                 rsh = os.environ.get("CVS_RSH") or "ssh"
   192                 rsh = encoding.environ.get("CVS_RSH") or "ssh"
   193                 if user:
   193                 if user:
   194                     cmd = [rsh, '-l', user, host] + cmd
   194                     cmd = [rsh, '-l', user, host] + cmd
   195                 else:
   195                 else:
   196                     cmd = [rsh, host] + cmd
   196                     cmd = [rsh, host] + cmd
   197 
   197