Show More
@@ -16,7 +16,13 b' class monotone_source(converter_source, ' | |||||
16 |
|
16 | |||
17 | norepo = NoRepo (_("%s does not look like a monotone repo") % path) |
|
17 | norepo = NoRepo (_("%s does not look like a monotone repo") % path) | |
18 | if not os.path.exists(os.path.join(path, '_MTN')): |
|
18 | if not os.path.exists(os.path.join(path, '_MTN')): | |
19 | raise norepo |
|
19 | # Could be a monotone repository (SQLite db file) | |
|
20 | try: | |||
|
21 | header = file(path, 'rb').read(16) | |||
|
22 | except: | |||
|
23 | header = '' | |||
|
24 | if header != 'SQLite format 3\x00': | |||
|
25 | raise norepo | |||
20 |
|
26 | |||
21 | # regular expressions for parsing monotone output |
|
27 | # regular expressions for parsing monotone output | |
22 | space = r'\s*' |
|
28 | space = r'\s*' |
General Comments 0
You need to be logged in to leave comments.
Login now