# HG changeset patch # User Yuya Nishihara # Date 1433047902 -32400 # Node ID 67b27ec080ae1d8ea9f3cb8dc8d83ed5578d840f # Parent b022478ae3d13114a1f6a85760409c3a9a4c1831 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. diff -r b022478ae3d1 -r 67b27ec080ae hggit/__init__.py --- a/hggit/__init__.py Thu May 28 12:44:00 2015 -0700 +++ b/hggit/__init__.py Sun May 31 13:51:42 2015 +0900 @@ -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 diff -r b022478ae3d1 -r 67b27ec080ae hggit/gitdirstate.py --- a/hggit/gitdirstate.py Thu May 28 12:44:00 2015 -0700 +++ b/hggit/gitdirstate.py Sun May 31 13:51:42 2015 +0900 @@ -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