diff --git a/contrib/packaging/__init__.py b/contrib/packaging/hgpackaging/__init__.py rename from contrib/packaging/__init__.py rename to contrib/packaging/hgpackaging/__init__.py diff --git a/contrib/packaging/packagingutil.py b/contrib/packaging/hgpackaging/util.py rename from contrib/packaging/packagingutil.py rename to contrib/packaging/hgpackaging/util.py --- a/contrib/packaging/packagingutil.py +++ b/contrib/packaging/hgpackaging/util.py @@ -1,4 +1,4 @@ -# packagingutil.py - Common packaging utility code. +# util.py - Common packaging utility code. # # Copyright 2019 Gregory Szorc # diff --git a/contrib/packaging/inno/build.py b/contrib/packaging/inno/build.py --- a/contrib/packaging/inno/build.py +++ b/contrib/packaging/inno/build.py @@ -87,7 +87,7 @@ for finding the Python 2.7 toolchain. So, we require the environment to already be configured with an active toolchain. """ - from packagingutil import ( + from hgpackaging.util import ( download_entry, extract_tar_to_directory, extract_zip_to_directory, diff --git a/tests/test-check-code.t b/tests/test-check-code.t --- a/tests/test-check-code.t +++ b/tests/test-check-code.t @@ -12,8 +12,8 @@ > -X hgext/fsmonitor/pywatchman \ > -X mercurial/thirdparty \ > | sed 's-\\-/-g' | "$check_code" --warnings --per-file=0 - || false + Skipping contrib/packaging/hgpackaging/util.py it has no-che?k-code (glob) Skipping contrib/packaging/inno/build.py it has no-che?k-code (glob) - Skipping contrib/packaging/packagingutil.py it has no-che?k-code (glob) Skipping i18n/polib.py it has no-che?k-code (glob) Skipping mercurial/statprof.py it has no-che?k-code (glob) Skipping tests/badserverext.py it has no-che?k-code (glob) diff --git a/tests/test-check-module-imports.t b/tests/test-check-module-imports.t --- a/tests/test-check-module-imports.t +++ b/tests/test-check-module-imports.t @@ -21,8 +21,8 @@ > -X contrib/debugshell.py \ > -X contrib/hgweb.fcgi \ > -X contrib/packaging/hg-docker \ + > -X contrib/packaging/hgpackaging/ \ > -X contrib/packaging/inno/ \ - > -X contrib/packaging/packagingutil.py \ > -X contrib/python-zstandard/ \ > -X contrib/win32/hgwebdir_wsgi.py \ > -X contrib/perf-utils/perf-revlog-write-plot.py \ diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -5,8 +5,8 @@ #if no-py3 $ testrepohg files 'set:(**.py)' \ + > -X contrib/packaging/hgpackaging/ \ > -X contrib/packaging/inno/ \ - > -X contrib/packaging/packagingutil.py \ > -X hgdemandimport/demandimportpy2.py \ > -X mercurial/thirdparty/cbor \ > | sed 's|\\|/|g' | xargs "$PYTHON" contrib/check-py3-compat.py