diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py --- a/hgext/convert/monotone.py +++ b/hgext/convert/monotone.py @@ -16,7 +16,13 @@ class monotone_source(converter_source, norepo = NoRepo (_("%s does not look like a monotone repo") % path) if not os.path.exists(os.path.join(path, '_MTN')): - raise norepo + # Could be a monotone repository (SQLite db file) + try: + header = file(path, 'rb').read(16) + except: + header = '' + if header != 'SQLite format 3\x00': + raise norepo # regular expressions for parsing monotone output space = r'\s*'