changeset 32595:9e46627baa3c

import-checker: add hgdemandimport to local modules This fixes test-check-module-imports.t.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 31 May 2017 20:07:08 -0700
parents 517841766994
children 19df975eb555
files contrib/import-checker.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/import-checker.py	Wed May 31 19:46:04 2017 -0700
+++ b/contrib/import-checker.py	Wed May 31 20:07:08 2017 -0700
@@ -244,7 +244,8 @@
         for top, dirs, files in os.walk(libpath):
             for i, d in reversed(list(enumerate(dirs))):
                 if (not os.path.exists(os.path.join(top, d, '__init__.py'))
-                    or top == libpath and d in ('hgext', 'mercurial')):
+                    or top == libpath and d in ('hgdemandimport', 'hgext',
+                                                'mercurial')):
                     del dirs[i]
             for name in files:
                 if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')):