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

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

Comments

phabricator - Oct. 1, 2017, 11:34 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9fb9f8440b71: python3: don&#039;t byte mangle third-party packages (authored by sid0, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/__init__.py

CHANGE DETAILS




To: sid0, #hg-reviewers, durin42
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