[PATCH 6 of 6] tests: check import cycles in hgext/**.py, too

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Wed May 13 11:53:59 CDT 2015


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1431535750 -32400
#      Thu May 14 01:49:10 2015 +0900
# Node ID e4eba789328746bf2f4e2a0498c0afb08b80ae34
# Parent  28a977036067ea7bb0af50218edbee9abe82331a
tests: check import cycles in hgext/**.py, too

It is important to realize existing cycles in hgext/**.py.

diff --git a/tests/test-module-imports.t b/tests/test-module-imports.t
--- a/tests/test-module-imports.t
+++ b/tests/test-module-imports.t
@@ -19,6 +19,7 @@ here that we should still endeavor to fi
 hidden by deduplication algorithm in the cycle detector, so fixing
 these may expose other cycles.
 
-  $ hg locate 'mercurial/**.py' | sed 's-\\-/-g' | python "$import_checker" -
+  $ hg locate 'mercurial/**.py' 'hgext/**.py' | sed 's-\\-/-g' | python "$import_checker" -
   Import cycle: mercurial.cmdutil -> mercurial.context -> mercurial.subrepo -> mercurial.cmdutil
+  Import cycle: hgext.largefiles.basestore -> hgext.largefiles.localstore -> hgext.largefiles.basestore
   Import cycle: mercurial.commands -> mercurial.commandserver -> mercurial.dispatch -> mercurial.commands


More information about the Mercurial-devel mailing list