Show More
@@ -791,10 +791,14 b' def has_repofncache():' | |||||
791 | def has_sqlite(): |
|
791 | def has_sqlite(): | |
792 | try: |
|
792 | try: | |
793 | import sqlite3 |
|
793 | import sqlite3 | |
794 | sqlite3.sqlite_version |
|
794 | version = sqlite3.sqlite_version_info | |
795 | except ImportError: |
|
795 | except ImportError: | |
796 | return False |
|
796 | return False | |
797 |
|
797 | |||
|
798 | if version < (3, 8, 3): | |||
|
799 | # WITH clause not supported | |||
|
800 | return False | |||
|
801 | ||||
798 | return matchoutput('sqlite3 -version', b'^3\.\d+') |
|
802 | return matchoutput('sqlite3 -version', b'^3\.\d+') | |
799 |
|
803 | |||
800 | @check('vcr', 'vcr http mocking library') |
|
804 | @check('vcr', 'vcr http mocking library') |
@@ -25,6 +25,14 b' except ImportError:' | |||||
25 | sqlitestore = None |
|
25 | sqlitestore = None | |
26 |
|
26 | |||
27 | try: |
|
27 | try: | |
|
28 | import sqlite3 | |||
|
29 | if sqlite3.sqlite_version_info < (3, 8, 3): | |||
|
30 | # WITH clause not supported | |||
|
31 | sqlitestore = None | |||
|
32 | except ImportError: | |||
|
33 | pass | |||
|
34 | ||||
|
35 | try: | |||
28 | from mercurial import zstd |
|
36 | from mercurial import zstd | |
29 | zstd.__version__ |
|
37 | zstd.__version__ | |
30 | except ImportError: |
|
38 | except ImportError: |
General Comments 0
You need to be logged in to leave comments.
Login now