Show More
@@ -179,7 +179,7 b' class convert_cvs(converter_source):' | |||||
179 | # :ext:user@host/home/user/path/to/cvsroot |
|
179 | # :ext:user@host/home/user/path/to/cvsroot | |
180 | if root.startswith(":ext:"): |
|
180 | if root.startswith(":ext:"): | |
181 | root = root[5:] |
|
181 | root = root[5:] | |
182 | m = re.match(r'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) |
|
182 | m = re.match(br'(?:([^@:/]+)@)?([^:/]+):?(.*)', root) | |
183 | # Do not take Windows path "c:\foo\bar" for a connection strings |
|
183 | # Do not take Windows path "c:\foo\bar" for a connection strings | |
184 | if os.path.isdir(root) or not m: |
|
184 | if os.path.isdir(root) or not m: | |
185 | conntype = "local" |
|
185 | conntype = "local" |
@@ -46,11 +46,11 b' class monotone_source(common.converter_s' | |||||
46 | raise norepo |
|
46 | raise norepo | |
47 |
|
47 | |||
48 | # regular expressions for parsing monotone output |
|
48 | # regular expressions for parsing monotone output | |
49 | space = r'\s*' |
|
49 | space = br'\s*' | |
50 | name = r'\s+"((?:\\"|[^"])*)"\s*' |
|
50 | name = br'\s+"((?:\\"|[^"])*)"\s*' | |
51 | value = name |
|
51 | value = name | |
52 | revision = r'\s+\[(\w+)\]\s*' |
|
52 | revision = br'\s+\[(\w+)\]\s*' | |
53 | lines = r'(?:.|\n)+' |
|
53 | lines = br'(?:.|\n)+' | |
54 |
|
54 | |||
55 | self.dir_re = re.compile(space + "dir" + name) |
|
55 | self.dir_re = re.compile(space + "dir" + name) | |
56 | self.file_re = re.compile(space + "file" + name + |
|
56 | self.file_re = re.compile(space + "file" + name + |
General Comments 0
You need to be logged in to leave comments.
Login now