##// END OF EJS Templates
convert/mtn: allow monotone database files as sources
Patrick Mezard -
r8052:fe2a87a3 default
parent child Browse files
Show More
@@ -16,6 +16,12 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 # 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':
19 raise norepo
25 raise norepo
20
26
21 # regular expressions for parsing monotone output
27 # regular expressions for parsing monotone output
General Comments 0
You need to be logged in to leave comments. Login now