diff --git a/mercurial/__init__.py b/mercurial/__init__.py --- a/mercurial/__init__.py +++ b/mercurial/__init__.py @@ -31,6 +31,9 @@ # Only handle Mercurial-related modules. if not fullname.startswith(('mercurial.', 'hgext.', 'hgext3rd.')): return None + # third-party packages are expected to be dual-version clean + if fullname.startswith('mercurial.thirdparty'): + return None # selectors2 is already dual-version clean, don't try and mangle it if fullname.startswith('mercurial.selectors2'): return None