Skip to content
Snippets Groups Projects
Commit 67b27ec0 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

ignore: evaluate ignore.readpats to see if ignore module really exists

Otherwise ImportError wouldn't be raised thanks to demandimport.

Perhaps tests passed at e5b10a710036 because we are likely to have ignore.pyc
in our mercurial tree.
parent b022478a
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@
from mercurial import hg
try:
from mercurial import ignore
ignore.readpats
ignoremod = True
except ImportError:
# The ignore module disappeared in Mercurial 3.5
......
......@@ -6,6 +6,7 @@
from mercurial import dirstate
try:
from mercurial import ignore
ignore.readpats
ignoremod = True
except:
# ignore module was removed in Mercurial 3.5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment