[PATCH 3 of 3 STABLE] test-check-code: prevent from adding Python modules shadowed by ancient C

Yuya Nishihara yuya at tcha.org
Fri Apr 20 08:10:34 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1524225272 -32400
#      Fri Apr 20 20:54:32 2018 +0900
# Branch stable
# Node ID 343510c06fd291d18f6df3905e6f27637a4f37fd
# Parent  cb673b653e017e6e596f8d233fc8e7ad56e21b73
test-check-code: prevent from adding Python modules shadowed by ancient C

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
@@ -51,3 +51,15 @@ Prevent adding new files in the root dir
   hgeditor
   hgweb.cgi
   setup.py
+
+Prevent adding modules which could be shadowed by ancient .so/.dylib.
+
+  $ testrepohg files \
+  > mercurial/base85.py \
+  > mercurial/bdiff.py \
+  > mercurial/diffhelpers.py \
+  > mercurial/mpatch.py \
+  > mercurial/osutil.py \
+  > mercurial/parsers.py \
+  > mercurial/zstd.py
+  [1]


More information about the Mercurial-devel mailing list