equal
deleted
inserted
replaced
147 if not conntype: |
147 if not conntype: |
148 # :ext:user@host/home/user/path/to/cvsroot |
148 # :ext:user@host/home/user/path/to/cvsroot |
149 if root.startswith(":ext:"): |
149 if root.startswith(":ext:"): |
150 root = root[5:] |
150 root = root[5:] |
151 m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) |
151 m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) |
152 if not m: |
152 # Do not take Windows path "c:\foo\bar" for a connection strings |
|
153 if os.path.isdir(root) or not m: |
153 conntype = "local" |
154 conntype = "local" |
154 else: |
155 else: |
155 conntype = "rsh" |
156 conntype = "rsh" |
156 user, host, root = m.group(1), m.group(2), m.group(3) |
157 user, host, root = m.group(1), m.group(2), m.group(3) |
157 |
158 |