[PATCH 2 of 5] test-module-imports: pass mercurial/__version__.py to checker

Yuya Nishihara yuya at tcha.org
Thu Feb 25 09:34:17 EST 2016


On Wed, 24 Feb 2016 22:30:13 +0000, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1456351726 0
> #      Wed Feb 24 22:08:46 2016 +0000
> # Node ID 0f9e0de14b62ea174bf0af8284a17ef6801ca2ae
> # Parent  fbc26e0249811675aaa764b7c74fabc46cd421e5
> test-module-imports: pass mercurial/__version__.py to checker
> 
> Before this patch, 'from mercurial import __version__' will fail the test
> because mercurial/__version__.py is in hgignore and the test uses 'hg locate'
> to find .py files.
> 
> The patch fixes it by explicitly pass mercurial/__version__.py to the checker.

hg should run without __version__.py. So it would be wrong to import
__version__ mandatory.


More information about the Mercurial-devel mailing list