From patchwork Fri Apr 20 12:10:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3, of, 3, STABLE] test-check-code: prevent from adding Python modules shadowed by ancient C From: Yuya Nishihara X-Patchwork-Id: 31206 Message-Id: <343510c06fd291d18f6d.1524226234@mimosa> To: mercurial-devel@mercurial-scm.org Date: Fri, 20 Apr 2018 21:10:34 +0900 # HG changeset patch # User Yuya Nishihara # 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]