Patchwork D871: python3: don't byte mangle third-party packages

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2017, 11:14 a.m.
Message ID <e777404df63dbe27d592792d543f3da6@localhost.localdomain>
Download mbox | patch
Permalink /patch/24316/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2017, 11:14 a.m.
sid0 updated this revision to Diff 2246.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D871?vs=2243&id=2246

REVISION DETAIL
  https://phab.mercurial-scm.org/D871

AFFECTED FILES
  mercurial/__init__.py

CHANGE DETAILS




To: sid0, #hg-reviewers
Cc: mercurial-devel

Patch

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