hgext/convert/cvs.py
changeset 5304 b85f7cc133cc
parent 5303 a76c61679b71
child 5305 87348cdce88c
--- 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"