[PATCH 1 of 8] py3: make doc/docchecker use absolute_import

Yuya Nishihara yuya at tcha.org
Sun May 15 09:19:06 EDT 2016


On Thu, 12 May 2016 16:28:54 -0500, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1463087439 -19800
> #      Fri May 13 02:40:39 2016 +0530
> # Node ID edaa549fd32eb620beb255e979019ee91bb0d414
> # Parent  df838803c1d487e4601f96c6cfd85e6ad4f6291f
> py3: make doc/docchecker use absolute_import

Pushing 1, 2, 7 and 8 to the committed repo, thanks.

My import-checker reported problems for the patch 3, and the patch 4 breaks
everything.

% ./run-tests.py -l test-check-module-imports.t test-check-pyflakes.t

--- /home/yuya/work/hghacks/mercurial-work/tests/test-check-module-imports.t
+++ /home/yuya/work/hghacks/mercurial-work/tests/test-check-module-imports.t.err
@@ -178,5 +178,9 @@
   > -X tests/test-hgweb-no-request-uri.t \
   > -X tests/test-hgweb-non-interactive.t \
   > | sed 's-\\-/-g' | python "$import_checker" -
+  doc/runrst:19: relative import of stdlib module
+  doc/runrst:20: relative import of stdlib module
+  doc/runrst:21: relative import of stdlib module
   Import cycle: hgext.largefiles.basestore -> hgext.largefiles.localstore -> hgext.largefiles.basestore
   [1]


More information about the Mercurial-devel mailing list