# HG changeset patch # User Patrick Mezard # Date 1189801073 -7200 # Node ID b85f7cc133cc94ffb23e0628250d9b46b1e22559 # Parent a76c61679b71233dfb38305ef715bc5533d783c1 convert: avoid interpreting Windows path as CVS connection strings. CVS connection strings regexp detect colons to separate protocols from path and login. Unfortunately, Windows paths contains colons and were interpreted as rsh connection strings. diff -r a76c61679b71 -r b85f7cc133cc hgext/convert/cvs.py --- a/hgext/convert/cvs.py Fri Sep 14 22:17:53 2007 +0200 +++ b/hgext/convert/cvs.py Fri Sep 14 22:17:53 2007 +0200 @@ -149,7 +149,8 @@ if root.startswith(":ext:"): root = root[5:] m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) - if not m: + # Do not take Windows path "c:\foo\bar" for a connection strings + if os.path.isdir(root) or not m: conntype = "local" else: conntype = "rsh"