Show More
@@ -170,6 +170,16 def fromlocalfunc(modulename, localmods) | |||
|
170 | 170 | return False |
|
171 | 171 | return fromlocal |
|
172 | 172 | |
|
173 | def populateextmods(localmods): | |
|
174 | """Populate C extension modules based on pure modules""" | |
|
175 | newlocalmods = set(localmods) | |
|
176 | for n in localmods: | |
|
177 | if n.startswith('mercurial.pure.'): | |
|
178 | m = n[len('mercurial.pure.'):] | |
|
179 | newlocalmods.add('mercurial.cext.' + m) | |
|
180 | newlocalmods.add('mercurial.cffi._' + m) | |
|
181 | return newlocalmods | |
|
182 | ||
|
173 | 183 | def list_stdlib_modules(): |
|
174 | 184 | """List the modules present in the stdlib. |
|
175 | 185 | |
@@ -701,7 +711,7 def main(argv): | |||
|
701 | 711 | for source_path in argv[1:]: |
|
702 | 712 | modname = dotted_name_of_path(source_path) |
|
703 | 713 | localmodpaths[modname] = source_path |
|
704 |
localmods = |
|
|
714 | localmods = populateextmods(localmodpaths) | |
|
705 | 715 | for localmodname, source_path in sorted(localmodpaths.items()): |
|
706 | 716 | for src, modname, name, line in sources(source_path, localmodname): |
|
707 | 717 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now