tests: check import cycles in hgext/**.py, too
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 18 May 2015 02:53:08 +0900
changeset 25176 665a9deae8dd
parent 25175 10e6c4b7121b
child 25177 c3459555318e
tests: check import cycles in hgext/**.py, too It is important to realize existing cycles in hgext/**.py.
tests/test-module-imports.t
--- a/tests/test-module-imports.t	Mon May 18 02:52:58 2015 +0900
+++ b/tests/test-module-imports.t	Mon May 18 02:53:08 2015 +0900
@@ -20,7 +20,7 @@
 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" -
   mercurial/dispatch.py mixed imports
      stdlib:    commands
      relative:  error, extensions, fancyopts, hg, hook, util
@@ -37,4 +37,5 @@
      stdlib:    formatter
      relative:  config, error, scmutil, util
   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