# HG changeset patch # User Yuya Nishihara # Date 2009-10-28 14:59:18 # Node ID c4f6c02e33c4dafac7f1a0ec1d5a5889887564aa # Parent e0eae93e6c6705f505ac2269b32a426ccc5a23f6 hgweb: added test case for extension loading phases (issue1824) this checks the order of module loading phases of hgweb. `4) reposetup' lines are duplicated because hgweb calls hg.repository() twice, one by __init__, another by refresh. diff --git a/tests/test-extension b/tests/test-extension --- a/tests/test-extension +++ b/tests/test-extension @@ -75,6 +75,20 @@ echo 'bar = bar.py' >> $HGRCPATH # command with no output, we just want to see the extensions loaded hg paths +# check hgweb's load order +echo '% hgweb.cgi' +cat > hgweb.cgi <> $HGRCPATH echo 'bar = !' >> $HGRCPATH diff --git a/tests/test-extension.out b/tests/test-extension.out --- a/tests/test-extension.out +++ b/tests/test-extension.out @@ -24,6 +24,17 @@ 3) foo extsetup 3) bar extsetup 4) foo reposetup 4) bar reposetup +% hgweb.cgi +1) foo imported +1) bar imported +2) foo uisetup +2) bar uisetup +3) foo extsetup +3) bar extsetup +4) foo reposetup +4) bar reposetup +4) foo reposetup +4) bar reposetup empty extension - empty cmdtable no commands defined